Thread: [OpenSBC] SipX<=>OpenSBC: inbound route doesn't work
Brought to you by:
joegenbaclor
From: OpenSBC F. <ope...@op...> - 2008-11-12 14:07:03
|
I've configured SIP Trunk on OpenSBC. Calls from sipX to PSTN over sip provider are working well. But when I try to call to my external PSTN number (must be routed to sipX number) I got an Internal error after vey long timeout. Seems OpenSBC doesn't route calls to sipX. Help me pls! My configs: SBC Mode: B2BOnlyMode Interface: sip:*:9000 B2BUA Route: [sip:44*] sip:provider.org;sip-trunk=true <xml> <siptrunk trunk-name="provider.org" route-set="provider.org" sip-domain="provider.org" expires="20"> <trunk-accounts> <account user-name="44444444444" auth-user-name="44444444444" auth-password="mypass" inboundroute="sip:10...@si...domain" expires="3600" /> </trunk-accounts> <transient-accounts> <account user-name="44444444444" auth-user-name="44444444444" auth-password="mypass" inboundroute="sip:10...@si...domain" /> </transient-accounts> </siptrunk> </xml> |
From: OpenSBC F. <ope...@op...> - 2008-11-12 14:22:10
|
You might need to put a b2bua route for sip:10...@si...domain. If that does not work, send a level 5 log. > {quote:title=Vitaly wrote:}{quote} > > I've configured SIP Trunk on OpenSBC. Calls from sipX to PSTN over sip provider are working well. But when I try to call to my external PSTN number (must be routed to sipX number) I got an Internal error after vey long timeout. > > Seems OpenSBC doesn't route calls to sipX. > > Help me pls! > > My configs: > > SBC Mode: B2BOnlyMode > > Interface: sip:*:9000 > > B2BUA Route: [sip:44*] sip:provider.org;sip-trunk=true > > <xml> > <siptrunk trunk-name="provider.org" route-set="provider.org" sip-domain="provider.org" expires="20"> > <trunk-accounts> > <account user-name="44444444444" auth-user-name="44444444444" auth-password="mypass" inboundroute="sip:10...@si...domain" expires="3600" /> > </trunk-accounts> > <transient-accounts> > <account user-name="44444444444" auth-user-name="44444444444" auth-password="mypass" inboundroute="sip:10...@si...domain" /> > </transient-accounts> > </siptrunk> > </xml> > > |
From: OpenSBC F. <ope...@op...> - 2008-11-12 15:05:49
|
I added B2BUA route [sip:100] sip:sipx.ebc.fleurop Unfortunately it didn't help. I will send the logby mail. Thanks for reply. |
From: Joegen E. B. <joe...@gm...> - 2008-11-14 03:52:24
|
Hi, I have seen the log. Form what I could tell, you are trying to place an inbound call to a sip-trunk via the main trunk sip listener. That will not be processed as an inbound trunk call. Instead it will be processed as outbound. So there is a screw up somewhere. Make sure to send inbound calls to a siptrunk via the sip-trunk listener. I am also not 100% clear what your setup is. If you could send a detailed call diagram of what you want to achieve, so much the better. Joegen OpenSBC Forum wrote: > I added B2BUA route [sip:100] sip:sipx.ebc.fleurop > > > Unfortunately it didn't help. I will send the logby mail. > > > Thanks for reply. > > > > |
From: OpenSBC F. <ope...@op...> - 2008-11-14 11:16:29
|
Hi Joegen, Seems I used double trunk which is hard to analise. It was call from 50...@my... => trunk to 41445001800 - provider sip.backbone.ch -> 41445001828 => trunk 52...@my... I just made another call: Analog phone 41448742528 => 41445001828 (provider number) => trunk to 528 and send log to your e-mail. Thank you |
From: OpenSBC F. <ope...@op...> - 2008-11-17 17:23:30
|
Hi Joegen, You are right. My OpenSBC is behind a NAT. Incoming requests look like: INVITE sip:41445555828@*my_gateway_ip*:9006;transport=udp SIP/2.0 State: 0 How can I make OpenSBC to send it over sip-trunk as incoming? I tried to add a B2BUA route {color:#000080}[sip:*@*my_gateway_ip*:*] sip:trunkname.org;sip-trunk=true{color} but it was not help. May be it is need to add another sip-trunk for incoming calls? Please suggest. |
From: OpenSBC F. <ope...@op...> - 2008-11-18 09:55:07
|
Hi Joegen, Seems I achieved some progress. Inbound calls place to a sip-trunk listener now. But I'm getting Internal Server Errors. Where is my mistake? 340834:04:20.473 INF: [CID=0x07a9] >>> SIP/2.0 500 Internal Server Error DST: 10.100.1.37:9000:UDP SRC: 10.100.1.37:9006 enc=0 bytes=443 340834:04:20.473 DBG: [CID=0x07a9] 340834:04:20.473 DBG: [CID=0x07a9] SIP/2.0 500 Internal Server Error 340834:04:20.473 DBG: [CID=0x07a9] From: <sip:413...@vo...>;tag=quz8d19vg2 340834:04:20.473 DBG: [CID=0x07a9] To: <sip:445...@vo...;sip-trunk=true>;tag=7c0ad6efc5b3dd118a28d5799cb4286a 340834:04:20.473 DBG: [CID=0x07a9] Via: SIP/2.0/UDP 10.100.1.37:9000;iid=3987;branch=z9hG4bK04c8c7efc5b3dd118a28d5799cb4286a;uas-addr=10.100.1.37;rport=9000;received=10.100.1.37 340834:04:20.473 DBG: [CID=0x07a9] CSeq: 1 INVITE 340834:04:20.473 DBG: [CID=0x07a9] Call-ID: 3c3a0337c788-s6smov9nh4bh-0x0015 340834:04:20.473 DBG: [CID=0x07a9] Server: OpenSIPStack-1.1.7-22 340834:04:20.473 DBG: [CID=0x07a9] Content-Length: 0 Thanks for help. |
From: Joegen E. B. <joe...@gm...> - 2008-11-18 10:01:26
|
I would start by looking at the log of which UA sent the error. I am going to assume that your call flow is UA1 -> SIP-Trunk -> Main Trunk -> SIPX Upon reaching SIPX what happens to the INVITE? Is it SIPX that's sending the 500 Internal Server Error? Joegen OpenSBC Forum wrote: > Hi Joegen, > > > Seems I achieved some progress. Inbound calls place to a sip-trunk listener now. But I'm getting Internal Server Errors. Where is my mistake? > > > 340834:04:20.473 INF: [CID=0x07a9] >>> SIP/2.0 500 Internal Server Error DST: 10.100.1.37:9000:UDP SRC: 10.100.1.37:9006 enc=0 bytes=443 > 340834:04:20.473 DBG: [CID=0x07a9] > 340834:04:20.473 DBG: [CID=0x07a9] SIP/2.0 500 Internal Server Error > 340834:04:20.473 DBG: [CID=0x07a9] From: <sip:413...@vo...>;tag=quz8d19vg2 > 340834:04:20.473 DBG: [CID=0x07a9] To: <sip:445...@vo...;sip-trunk=true>;tag=7c0ad6efc5b3dd118a28d5799cb4286a > 340834:04:20.473 DBG: [CID=0x07a9] Via: SIP/2.0/UDP 10.100.1.37:9000;iid=3987;branch=z9hG4bK04c8c7efc5b3dd118a28d5799cb4286a;uas-addr=10.100.1.37;rport=9000;received=10.100.1.37 > 340834:04:20.473 DBG: [CID=0x07a9] CSeq: 1 INVITE > 340834:04:20.473 DBG: [CID=0x07a9] Call-ID: 3c3a0337c788-s6smov9nh4bh-0x0015 > 340834:04:20.473 DBG: [CID=0x07a9] Server: OpenSIPStack-1.1.7-22 > 340834:04:20.473 DBG: [CID=0x07a9] Content-Length: 0 > > > Thanks for help. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Opensipstack-osbcdevel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.175 / Virus Database: 270.9.4/1794 - Release Date: 11/17/2008 8:48 AM > > |
From: OpenSBC F. <ope...@op...> - 2008-11-18 14:08:23
|
I guess it is a sip-trunk error. Call scheme UA1->SIP-Trunk -> ext num1 -> ext num2 -> SIP-Trunk -> Main Trunk -> SIPX -> UA2 |
From: Joegen E. B. <joe...@gm...> - 2008-11-18 14:34:54
|
Now I am confused. 1. Are ext num1 and ext num2 actual SIP User Agents in the signaling path? 2. There seem to be two sip trunks in your call flow. Are you running two instances of OpenSBC? 3. OpenSBC does not send a 500 Internal Server Error. I am quite sure it did not come from OSBC. So please dig deeper into your setup and find out which UA is causing it. I could probably help in the why as long as you give give me the exact picture. Joegen OpenSBC Forum wrote: > I guess it is a sip-trunk error. > > > Call scheme > > > UA1->SIP-Trunk -> ext num1 -> ext num2 -> SIP-Trunk -> Main Trunk -> SIPX -> UA2 > > > > |
From: Joegen E. B. <joe...@gm...> - 2008-11-18 14:44:54
|
In addition, from the looks at the log you sent me, you seem to be tromboning/hairpining the call back to OpenSBC. So the call goes out the SIP Trunk and loop back to the SIP trunk again. This will not work. OpenSBC will not route this call properly in this context. Joegen E. Baclor wrote: > Now I am confused. > > 1. Are ext num1 and ext num2 actual SIP User Agents in the signaling path? > 2. There seem to be two sip trunks in your call flow. Are you running > two instances of OpenSBC? > 3. OpenSBC does not send a 500 Internal Server Error. I am quite sure > it did not come from OSBC. So please dig deeper into your setup and > find out which UA is causing it. I could probably help in the why as > long as you give give me the exact picture. > > Joegen > > OpenSBC Forum wrote: > >> I guess it is a sip-trunk error. >> >> >> Call scheme >> >> >> UA1->SIP-Trunk -> ext num1 -> ext num2 -> SIP-Trunk -> Main Trunk -> SIPX -> UA2 >> >> >> >> >> > > > |
From: OpenSBC F. <ope...@op...> - 2008-11-18 15:50:54
|
I guess I can make two calls over sip-trunk at the same time. I want to test incoming calls but I can't call from PSTN number. So I'm trying to call from my internal sipx number over sip-trunk to another number which must be routed to another internal number. According to this sip-trunk config I dial 44555555555 from number sip:10...@si...domain and want to be routed to number sip:20...@si...domain Is it correct? <xml> <siptrunk trunk-name="provider.org" route-set="provider.org" sip-domain="provider.org" expires="20"> <trunk-accounts> <account user-name="44444444444" auth-user-name="44444444444" auth-password="mypass" inboundroute="sip:10...@si...domain" expires="3600" /> <account user-name="44555555555" auth-user-name="44555555555" auth-password="mypass" inboundroute="sip:20...@si...domain" expires="3600" /> </trunk-accounts> <transient-accounts> <account user-name="44444444444" auth-user-name="44444444444" auth-password="mypass" inboundroute="sip:10...@si...domain" /> <account user-name="44555555555" auth-user-name="44555555555" auth-password="mypass" inboundroute="sip:20...@si...domain" /> </transient-accounts> </siptrunk> </xml> |
From: OpenSBC F. <ope...@op...> - 2008-11-18 17:11:33
|
Just called directly: PSTN -> sip-trunk Call from 448755540 to 445055528 (must be routed to 52...@si...) 340841:28:21.718 DBG: [CID=0x0c10] SIP/2.0 405 Method Not Allowed 340841:28:21.718 DBG: [CID=0x0c10] From: <sip:0448755540@212.117.200.148>;tag=fc890bb1f0b0195a7eec54a735e6f2ee 340841:28:21.718 DBG: [CID=0x0c10] To: <sip:414450055528@212.117.200.148> 340841:28:21.718 DBG: [CID=0x0c10] Via: SIP/2.0/UDP 212.117.200.148;branch=z9hG4bKda9.5f70b2c62a812f99f1e6c550a1ac7e66.0;rport=5060;received=212.117.200.148 340841:28:21.718 DBG: [CID=0x0c10] Via: SIP/2.0/UDP 212.117.200.148:5061;branch=z9hG4bK63662164fcb956b9b7c301b95d63475c;rport=5061 340841:28:21.718 DBG: [CID=0x0c10] CSeq: 200 CANCEL 340841:28:21.718 DBG: [CID=0x0c10] Call-ID: A4FA8432-B4C811DD-BF5BEA9F-DB957415@212.117.200.79~1o 340841:28:21.718 DBG: [CID=0x0c10] Content-Length: 0 |