Re: [OpenSIPStack] [OpenSBC] Trunking/ DID - To URI
Brought to you by:
joegenbaclor
From: Joegen E. B. <joe...@gm...> - 2007-11-28 09:07:15
|
I fully understand the problem. What's the request-URI? Is it ***sip:555...@si... <http://us.f524.mail.yahoo.com/ym/Compose?To=sip:555...@si...>* like the invite below? INVITE ***sip:555...@si... <http://us.f524.mail.yahoo.com/ym/Compose?To=sip:555...@si...>* SIP/2.0 To: sip:12069220355*@sip3.voipvoip.com <http://us.f524.mail.yahoo.com/ym/Compose?To=sip:555...@si...>* Joegen Gaurav Kheterpal wrote: > > 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 > voipvoip.com <http://voipvoip.com> is > > *sip:555...@si... > <http://us.f524.mail.yahoo.com/ym/Compose?To=sip:555...@si...> > > *and voipvoip.com <http://voipvoip.com> proxy registers OpenSBC with > above SIP URI. But voipvoip.com <http://voipvoip.com> has allocated > DID 12069220355 for this particular AOR and all the incoming calls > coming to OpenSBC have SIP TO URI as > > To: <sip:206...@si... > <http://us.f524.mail.yahoo.com/ym/Compose?To=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 > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > ------------------------------------------------------------------------ > > _______________________________________________ > Opensipstack-osbcdevel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.16.9/1155 - Release Date: 11/27/2007 8:30 PM > |