[OpenSIPStack] Trunking/ DID - To URI
Brought to you by:
joegenbaclor
From: Gaurav K. <gkh...@is...> - 2007-11-28 06:17:08
|
Hi Joegen, I trust you are doing fine. While continuing to explore the trunking feature of OpenSBC with various SIP providers, we ran in to the following issue:- While testing with voipviop.com, The AOR of our account in <http://voipvoip.com> voipvoip.com is <http://us.f524.mail.yahoo.com/ym/Compose?To=sip:555...@si... m> sip:555...@si... and <http://voipvoip.com> voipvoip.com proxy registers OpenSBC with above SIP URI. But <http://voipvoip.com> voipvoip.com has allocated DID 12069220355 for this particular AOR and all the incoming calls coming to OpenSBC have SIP TO URI as To: < <http://us.f524.mail.yahoo.com/ym/Compose?To=sip:206...@si... m> sip:206...@si... >. Now the problem is that when an inbound call comes in, the code searches for UserName: 2069220355 and tries to get SipTrunkAccount object but it fails as UserName is 5553885283 on Sip Trunk Config Page. Here is snippet from the code. SBCRoutingHandler::B2BRouteCall() { SBCSIPTrunkAccount account; account.SetUserName( to.GetURI().GetUser().c_str() ); if( trunkReg->FindTrunkAccount( account ) ) { ///ok we have an account uri = SIPURI( account.GetInboundRoute() ); } } Any suggestions on how we can get the DID into account for trunking? As always, thanks in advance for your reply. Regards, Gaurav |