Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Sergey Okhapkin (sokhapkin)
Assigned to: Anca Vamanu (anca_vamanu)
Summary: b2bua and script routes execution.
This is not a bug, but enchancement request. I use script routes to log SIP messages running back and forth. in main route I have xlog("L_INFO","SIP message from $proto:$si:$sp\n$mb\n"); , in onreply_route - xlog("L_INFO","incoming reply from $si:$sp\n$mb\n"); , in local_route - xlog("L_INFO","Sending to $du\n$mb\n"); . But when b2bua is enabled not all SIP messages are logged. Incoming in-dialog messages from UAC are not logged in main routing block because b2b_prescript_f returns 0 and main route is not executed. Also CANCEL message from b2bua client to upstream is not logged in local route (the route is not executed). It would be nice to have a way to log ALL SIP messages from opensips.cfg.
>Comment By: Anca Vamanu (anca_vamanu)
Date: 2009-09-16 17:30
I have added the possibility to have special routes for received B2B
requests and replies. You have to define the name of the routes as module
parameters for module b2b_entities and then define the routes with that
name, They will be called when requests or replies are received.