Thread: Re: [OpenSBC] SipX<=>OpenSBC: inbound route doesn't work
Brought to you by:
joegenbaclor
From: OpenSBC F. <ope...@op...> - 2008-11-19 05:10:06
|
Threading was screwed up in the OSS Forum so I am reposting this: Hi Robert, OpenSBC can do hairpin if you do it correctly. The outbound call should be sent through the main trunk UA1 -> OSBC-Main-Trunk -> SIP-Server When the SIP-Server hairpins/trombones the call back to OpenSBC, it must either use one of two listeners based on which config applies ** SIP-Server has static routing policies OR is configured as upper-reg SIP-Server -> OSBC-BackDoor -> OSBC-Main-Trunk -> UA2 Or ** SIP-Server configured as a trunk provider SIP-Server -> OSBC-SIP-Trunk -> OSBC-Main-Trunk -> UA2 In the case of the original poster, he is trying to trombone the call back to the SIP-Trunk which would cause call-id collisions Joegen |
From: OpenSBC F. <ope...@op...> - 2008-11-19 10:00:27
|
My aim is not to do hairpin. I want to trunk inbound calls only. So I have been tried to test a direct call from analog phone to sip-trunk and I got "SIP/2.0 405 Method Not Allowed" May be it is because NAT problem? I added UpperReg route [sip:*@ext.ip:9006] sip:int.ip:9006 but it doesn't help. May be it is need to add prerouting rule to iptable? |
From: OpenSBC F. <ope...@op...> - 2008-11-19 22:34:01
|
Vitaly, Let me replicate your setup locally and get back to you on that CANCEL issue. For the meantime, however, I can see that the domain in the INVITE to URI is not the same domain you configured for you trunk. If your trunk domain is "sip:foobar.com", inbound INVITe should have that domain in the To URI so OpenSBC would know which trunk segment to use for routing. Joegen > {quote:title=Vitaly wrote:}{quote} > > My aim is not to do hairpin. > > I want to trunk inbound calls only. So I have been tried to test a direct call from analog phone to sip-trunk and I got "SIP/2.0 405 Method Not Allowed" > > May be it is because NAT problem? > > I added UpperReg route [sip:*@ext.ip:9006] sip:int.ip:9006 but it doesn't help. > > May be it is need to add prerouting rule to iptable? > |
From: OpenSBC F. <ope...@op...> - 2008-11-25 15:42:31
|
Hi, Joegen I've installed OpenSBC v.1.1.5 RC2 on another server with ext.ip. When I call from PSTN number 448755540 to number 41445551800 I got the next result 2008/11/25 17:18:42.257 ERR: [CID=0x0000] GC: CallSessionManager.cxx:535 CallSessionManager::OnCreateServerSession::CallSession Attempt to CreateReference() a NULL Pointer or none descendant of PObject!!! 2008/11/25 17:18:42.257 DBG: [CID=0x06cb] *** MESSAGE ARRIVAL *** No Session available to handle INVITE sip:41445001800@my_ext_ip:9006;transport=udp SIP/2.0 2008/11/25 17:18:42.258 DTL: [CID=0x0bfd] IST(1227626196313) Event(SIPMessage) - SIP/2.0 500 Maximum Concurrent Connection Reached 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] TRANSACTION: (IST) SIP/2.0 500 Maximum Concurrent Connection Reached State: 2 2008/11/25 17:18:42.258 DTL: [CID=0x0bfd] IST(1227626196313) StateProceeding->StateCompleted(SIP/2.0 500 Maximum Concurrent Connection Reached) 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] IST(1227626196313) Timer H( 32000 ms ) STARTED 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] IST(1227626196313) Timer G( 500 ms ) STARTED 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] Added ACK Transaction 279DF7A7-BA3B11DD-9734EA9F-DB957415@212.117.200.79~1o44b43a0372b9dd11870fd91503730f87|z9hG4bKc9c4.2b3ee7949af4ab8a4cc33ef47f04bf57.0|ACK 2008/11/25 17:18:42.259 INF: [CID=0x0bfd] >>> SIP/2.0 500 Maximum Concurrent Connection Reached DST: 212.117.200.148:5060:UDP src=my_ext_ip:9007 enc=0 bytes=608 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] SIP/2.0 500 Maximum Concurrent Connection Reached 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] From: <sip:0448755540@212.117.200.148>;tag=ffcc5d70113083cd38912c3472e27a3a 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] To: <sip:41445551800@212.117.200.148>;tag=44b43a0372b9dd11870fd91503730f87 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Via: SIP/2.0/UDP 212.117.200.148;branch=z9hG4bKc9c4.2b3ee7949af4ab8a4cc33ef47f04bf57.0;rport=5060;received=212.117.200.148 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Via: SIP/2.0/UDP 212.117.200.148:5061;branch=z9hG4bKb14092bed380e45e3f6003f979886bf3;rport=5061 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] CSeq: 200 INVITE 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Call-ID: 279DF7A7-BA3B11DD-9734EA9F-DB957415@212.117.200.79~1o 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Record-Route: <sip:212.117.200.148;ftag=ffcc5d70113083cd38912c3472e27a3a;lr> 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Content-Length: 0 What did I confuse? -- Regard, Vitaly |
From: Joegen E. B. <joe...@gm...> - 2008-11-25 16:22:04
|
Hi Vitaly, The error you are seeing is SIP/2.0 500 Maximum Concurrent Connection Reached is pretty much misleading. I'll change this in the future. The real meaning of this error for trunk calls is that OpenSBC was not able to map an account to the inbound call. Based on this error response, the domain is not correct. SIP/2.0 500 Maximum Concurrent Connection Reached From: <sip:044...@21...>;tag=ffcc5d70113083cd38912c3472e27a3a To: <sip:414...@21...>;tag=44b43a0372b9dd11870fd91503730f87 As you can see, it is sending to 414...@21.... if you configured your trunk like this SIP-Trunk-Config=<siptrunk trunk-name="voipgateway.org" route-set="voipgateway.org" sip-domain="voipgateway.org" expires="20"> Then the INVITE should be INVITE sip:41445551800ip.add.of.sbc:5066 SIP/2.0 From: <sip:044...@vo...>;tag=ffcc5d70113083cd38912c3472e27a3a To: <sip:414...@vo...>;tag=44b43a0372b9dd11870fd91503730f87 HTH, Joegen OpenSBC Forum wrote: > Hi, Joegen > > > I've installed OpenSBC v.1.1.5 RC2 on another server with ext.ip. > > > When I call from PSTN number 448755540 to number 41445551800 I got the next result > > > 2008/11/25 17:18:42.257 ERR: [CID=0x0000] GC: CallSessionManager.cxx:535 CallSessionManager::OnCreateServerSession::CallSession Attempt to CreateReference() a NULL Pointer or none descendant of PObject!!! > 2008/11/25 17:18:42.257 DBG: [CID=0x06cb] *** MESSAGE ARRIVAL *** No Session available to handle INVITE sip:41445001800@my_ext_ip:9006;transport=udp SIP/2.0 > 2008/11/25 17:18:42.258 DTL: [CID=0x0bfd] IST(1227626196313) Event(SIPMessage) - SIP/2.0 500 Maximum Concurrent Connection Reached > 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] TRANSACTION: (IST) SIP/2.0 500 Maximum Concurrent Connection Reached State: 2 > 2008/11/25 17:18:42.258 DTL: [CID=0x0bfd] IST(1227626196313) StateProceeding->StateCompleted(SIP/2.0 500 Maximum Concurrent Connection Reached) > 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] IST(1227626196313) Timer H( 32000 ms ) STARTED > 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] IST(1227626196313) Timer G( 500 ms ) STARTED > 2008/11/25 17:18:42.258 DBG: [CID=0x0bfd] Added ACK Transaction 279DF7A7-BA3B11DD-9734EA9F-DB957415@212.117.200.79~1o44b43a0372b9dd11870fd91503730f87|z9hG4bKc9c4.2b3ee7949af4ab8a4cc33ef47f04bf57.0|ACK > 2008/11/25 17:18:42.259 INF: [CID=0x0bfd] >>> SIP/2.0 500 Maximum Concurrent Connection Reached DST: 212.117.200.148:5060:UDP src=my_ext_ip:9007 enc=0 bytes=608 > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] SIP/2.0 500 Maximum Concurrent Connection Reached > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] From: <sip:0448755540@212.117.200.148>;tag=ffcc5d70113083cd38912c3472e27a3a > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] To: <sip:41445551800@212.117.200.148>;tag=44b43a0372b9dd11870fd91503730f87 > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Via: SIP/2.0/UDP 212.117.200.148;branch=z9hG4bKc9c4.2b3ee7949af4ab8a4cc33ef47f04bf57.0;rport=5060;received=212.117.200.148 > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Via: SIP/2.0/UDP 212.117.200.148:5061;branch=z9hG4bKb14092bed380e45e3f6003f979886bf3;rport=5061 > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] CSeq: 200 INVITE > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Call-ID: 279DF7A7-BA3B11DD-9734EA9F-DB957415@212.117.200.79~1o > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Record-Route: <sip:212.117.200.148;ftag=ffcc5d70113083cd38912c3472e27a3a;lr> > 2008/11/25 17:18:42.259 DBG: [CID=0x0bfd] Content-Length: 0 > > > What did I confuse? > |