Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Understanding SIP Trunk

Status
Not open for further replies.

g18c

Programmer
May 2, 2002
342
AE
Pulling my hair out with X-Lite that works but not with IP Office, couple of questions please:

1)Any resources where i can learn to debug SIP trunk and understand the flow

2)Any ideas what the below forbidden message means `Warning: 65535 - "Error ID:[26] From EDM/SREG, Error ID is EDM/Sreg Relpos!"`? I am using the same password as on x-lite:

Code:
  522211mS Sip: Association found trunk: SIP Line (18)
    522211mS SIP Reg/Opt Rx: 18
                    OPTIONS sip:65185600.myisp:5060;maddr=192.168.1.47 SIP/2.0
                    Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKtkcp4n3010t1gijaq5o1
                    Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002v52@192.168.1.6
                    To: sip:ping@65185600.myisp
                    From: <sip:ping@192.168.1.6>;tag=c525640fff36ea086dcfaa1c46a4ae180002v52
                    Max-Forwards: 70
                    CSeq: 61835 OPTIONS
                    
    522211mS Sip: SIPDialog f4d6a54c created, dialogs 1 txn_keys 1
    522211mS Sip: (f4d6a54c) ExtractContactFromMessage: cannot get Contact Header 2012
    522212mS Sip: SIPDialog::ExtractResponseParamsFromViaHeader remote sent_by: 192.168.1.6:5060 trunk
    522212mS Sip: SIPDialog::ExtractResponseParamsFromViaHeader remote sent by transport: SIP/2.0/UDP trunk
    522213mS Sip: (f4d6a54c) SendSIPResponse: OPTIONS code 200 SENT TO 192.168.1.6 5060
    522214mS SIP Reg/Opt Tx: 18
                    SIP/2.0 200 OK
                    Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKtkcp4n3010t1gijaq5o1
                    From: <sip:ping@192.168.1.6>;tag=c525640fff36ea086dcfaa1c46a4ae180002v52
                    Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002v52@192.168.1.6
                    CSeq: 61835 OPTIONS
                    Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,INFO,NOTIFY,UPDATE
                    Supported: timer
                    Server: IP Office 9.0.11.0 build 1003
                    To: <sip:ping@65185600.myisp>;tag=aa381251cb3d3c9f
                    Content-Type: application/sdp
                    Content-Length: 233
                    
                    v=0
                    o=UserA 3351280905 4033760780 IN IP4 0.0.0.0
                    s=Session SDP
                    c=IN IP4 0.0.0.0
                    t=0 0
                    m=audio 8000 RTP/AVP 8 0 18 4
                    a=rtpmap:8 PCMA/8000
                    a=rtpmap:0 PCMU/8000
                    a=rtpmap:18 G729/8000
                    a=fmtp:18 annexb=no
                    a=rtpmap:4 G723/16000
    522214mS Sip: (f4d6a54c) UpdateSIPCallState SIPDialog::INITIAL(0) -> SIPDialog::FINAL(28)
    522510mS Sip: SIPDialog f4d7143c created, dialogs 2 txn_keys 1
    522511mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) REGISTER SENT TO 192.168.1.6 5060
    522511mS SIP Reg/Opt Tx: 18
                    REGISTER sip:65185600.myisp SIP/2.0
                    Via: SIP/2.0/UDP 192.168.1.47:5060;rport;branch=z9hG4bK9e0e783ed4ae8d5a2045c27d44947f12
                    From: <sip:065185600@65185600.myisp>;tag=d88248d34e054dce
                    To: <sip:065185600@65185600.myisp>
                    Call-ID: 2f4757a64cea0201c1b0ebcd6a9bb0f5
                    CSeq: 1887476363 REGISTER
                    Contact: "Unknown" <sip:065185600.myisp@192.168.1.47:5060;transport=udp>
                    Expires: 120
                    Authorization: Digest username="065185600.myisp",realm="myisp.com",nonce="a4ecc084fa4bb952651df2bc8294390c",response="4b9a4959860140380df61247301580ae",uri="sip:65185600.myisp"
                    Max-Forwards: 70
                    User-Agent: IP Office 9.0.11.0 build 1003
                    Supported: timer
                    Content-Length: 0
                    
    522530mS Sip: Find End Point2 0.1010.0 -1 SIPTrunk Endpoint (f4d72a5c) Sip CallId 2f4757a64cea0201c1b0ebcd6a9bb0f5
    522530mS SIP Reg/Opt Rx: 18
                    SIP/2.0 401 Unauthorized
                    Via: SIP/2.0/UDP 192.168.1.47:5060;received=192.168.1.47;branch=z9hG4bK9e0e783ed4ae8d5a2045c27d44947f12;rport=5060
                    From: <sip:065185600@65185600.myisp>;tag=d88248d34e054dce
                    To: <sip:065185600@65185600.myisp>;tag=xurov0nu
                    Call-ID: 2f4757a64cea0201c1b0ebcd6a9bb0f5
                    CSeq: 1887476363 REGISTER
                    [URL unfurl="true"]WWW-Authenticate:[/URL] Digest realm="myisp.com",nonce="b697fcb7243a269f85c6e520ed23118b",domain="sip:myisp.com",stale=false,algorithm=MD5
                    Server: Huawei SoftX3000 V300R010
                    Content-Length: 0
                    
    522530mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) Ignoring Q.850 Reason dialog f4d7143c, method REGISTER, CodeNum 401 in state SIPDialog::INITIAL(0)
    522530mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) Process SIP response dialog f4d7143c, method REGISTER, CodeNum 401 in state SIPDialog::INITIAL(0)
    522530mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) SIP-EP: Decoding of  401  (challenge) RESPONSE  
    522531mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) UpdateSIPCallState SIPDialog::INITIAL(0) -> SIPDialog::CHALLENGE_RCVD(8)
    522532mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) REGISTER SENT TO 192.168.1.6 5060
    522532mS SIP Reg/Opt Tx: 18
                    REGISTER sip:65185600.myisp SIP/2.0
                    Via: SIP/2.0/UDP 192.168.1.47:5060;rport;branch=z9hG4bK5adf594e12906203bd2994590579d7d3
                    From: <sip:065185600@65185600.myisp>;tag=d88248d34e054dce
                    To: <sip:065185600@65185600.myisp>
                    Call-ID: 2f4757a64cea0201c1b0ebcd6a9bb0f5
                    CSeq: 1887476364 REGISTER
                    Contact: "Unknown" <sip:065185600.myisp@192.168.1.47:5060;transport=udp>
                    Expires: 120
                    Authorization: Digest username="065185600.myisp",realm="myisp.com",nonce="b697fcb7243a269f85c6e520ed23118b",response="cb8682c7e9ab2660d1ea05cb7befd4a6",uri="sip:65185600.myisp"
                    Max-Forwards: 70
                    User-Agent: IP Office 9.0.11.0 build 1003
                    Supported: timer
                    Content-Length: 0
                    
    522533mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) UpdateSIPCallState SIPDialog::CHALLENGE_RCVD(8) -> SIPDialog::CHALLENGE_RESP_SENT(4)
    522560mS Sip: Find End Point2 0.1010.0 -1 SIPTrunk Endpoint (f4d72a5c) Sip CallId 2f4757a64cea0201c1b0ebcd6a9bb0f5
    522560mS SIP Reg/Opt Rx: 18
                    SIP/2.0 403 Forbidden
                    Via: SIP/2.0/UDP 192.168.1.47:5060;received=192.168.1.47;branch=z9hG4bK5adf594e12906203bd2994590579d7d3;rport=5060
                    From: <sip:065185600@65185600.myisp>;tag=d88248d34e054dce
                    To: <sip:065185600@65185600.myisp>;tag=qu0nuuoq
                    Call-ID: 2f4757a64cea0201c1b0ebcd6a9bb0f5
                    CSeq: 1887476364 REGISTER
                    Warning: 65535 - "Error ID:[26] From EDM/SREG, Error ID is EDM/Sreg Relpos!"
                    Server: Huawei SoftX3000 V300R010
                    Content-Length: 0
                    
    522561mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) Process SIP response dialog f4d7143c, method REGISTER, CodeNum 403 in state SIPDialog::CHALLENGE_RESP_SENT(4)
    522561mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) ExtractContactFromMessage: cannot get Contact Header 2012
    522561mS Sip: SIP Line (18) parameter 065185600 registration has failed due to authentication, setting retry timer to 480 secs
    522561mS Sip: 0.1010.0 -1 SIPTrunk Endpoint(f4d7143c) UpdateSIPCallState SIPDialog::CHALLENGE_RESP_SENT(4) -> SIPDialog::FINAL(28)
    527214mS Sip: sip_indicateTimeOut Timer 10
    527214mS Sip: Timer 10 callback found dialog f4d6a54c 3a44581b2ac808a1dcdae60f4daf5dd10002v52@192.168.1.6 OPTIONS SIPDialog::FINAL
    527214mS Sip: Completed f4d6a54c ... removing Dialog of CallId 3a44581b2ac808a1dcdae60f4daf5dd10002v52@192.168.1.6 and State: SIPDialog::FINAL(28)
    527214mS Sip: SIPDialog f4d6a54c deleted, dialogs 1 txn_keys 2
    527215mS Sip: sip_indicateTimeOut txn_keys 2
    527530mS Sip: sip_indicateTimeOut Timer 11
    527530mS Sip: Timer 11 callback found dialog f4d7143c 2f4757a64cea0201c1b0ebcd6a9bb0f5 REGISTER SIPDialog::FINAL
    527530mS Sip: Completed ... (todelete) removing/preserving Dialog f4d7143c of CallId: 2f4757a64cea0201c1b0ebcd6a9bb0f5 and State: SIPDialog::FINAL(28)
    527530mS Sip: SIPDialog f4d7143c deleted, dialogs 0 txn_keys 1
    527530mS Sip: ~SipTrunkEndpoint 0.1010.0 -1 SIPTrunk Endpoint
    527531mS Sip: sip_indicateTimeOut txn_keys 1
    527560mS Sip: sip_indicateTimeOut Timer 11
    527560mS Sip: Timer 11 callback didn't find dialog, method REGISTER, callid 2f4757a64cea0201c1b0ebcd6a9bb0f5
    527560mS Sip: sip_indicateTimeOut txn_keys 0
    552211mS Sip: Association found trunk: SIP Line (18)
    552211mS SIP Reg/Opt Rx: 18
                    OPTIONS sip:65185600.myisp:5060;maddr=192.168.1.47 SIP/2.0
                    Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKvp9p0r301ou1dbv521o0
                    Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002f62@192.168.1.6
                    To: sip:ping@65185600.myisp
                    From: <sip:ping@192.168.1.6>;tag=c525640fff36ea086dcfaa1c46a4ae180002f62
                    Max-Forwards: 70
                    CSeq: 61836 OPTIONS
                    
    552212mS Sip: SIPDialog f4d6a54c created, dialogs 1 txn_keys 1
    552212mS Sip: (f4d6a54c) ExtractContactFromMessage: cannot get Contact Header 2012
    552213mS Sip: SIPDialog::ExtractResponseParamsFromViaHeader remote sent_by: 192.168.1.6:5060 trunk
    552213mS Sip: SIPDialog::ExtractResponseParamsFromViaHeader remote sent by transport: SIP/2.0/UDP trunk
    552214mS Sip: (f4d6a54c) SendSIPResponse: OPTIONS code 200 SENT TO 192.168.1.6 5060
    552214mS SIP Reg/Opt Tx: 18
                    SIP/2.0 200 OK
                    Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKvp9p0r301ou1dbv521o0
                    From: <sip:ping@192.168.1.6>;tag=c525640fff36ea086dcfaa1c46a4ae180002f62
                    Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002f62@192.168.1.6
                    CSeq: 61836 OPTIONS
                    Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,INFO,NOTIFY,UPDATE
                    Supported: timer
                    Server: IP Office 9.0.11.0 build 1003
                    To: <sip:ping@65185600.myisp>;tag=97601dbf4db92694
                    Content-Type: application/sdp
                    Content-Length: 232
                    
                    v=0
                    o=UserA 851663188 3137296862 IN IP4 0.0.0.0
                    s=Session SDP
                    c=IN IP4 0.0.0.0
                    t=0 0
                    m=audio 8000 RTP/AVP 8 0 18 4
                    a=rtpmap:8 PCMA/8000
                    a=rtpmap:0 PCMU/8000
                    a=rtpmap:18 G729/8000
                    a=fmtp:18 annexb=no
                    a=rtpmap:4 G723/16000
    552214mS Sip: (f4d6a54c) UpdateSIPCallState SIPDialog::INITIAL(0) -> SIPDialog::FINAL(28)
    557214mS Sip: sip_indicateTimeOut Timer 10
    557214mS Sip: Timer 10 callback found dialog f4d6a54c 3a44581b2ac808a1dcdae60f4daf5dd10002f62@192.168.1.6 OPTIONS SIPDialog::FINAL
    557214mS Sip: Completed f4d6a54c ... removing Dialog of CallId 3a44581b2ac808a1dcdae60f4daf5dd10002f62@192.168.1.6 and State: SIPDialog::FINAL(28)
    557214mS Sip: SIPDialog f4d6a54c deleted, dialogs 0 txn_keys 0
    557214mS Sip: sip_indicateTimeOut txn_keys 0

    582211mS Sip: Association found trunk: SIP Line (18)
    582211mS SIP Reg/Opt Rx: 18
                    OPTIONS sip:65185600.myisp:5060;maddr=192.168.1.47 SIP/2.0
                    Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bK90m65h202o00qibfm7o0
                    Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002v62@192.168.1.6
                    To: sip:ping@65185600.myisp
                    From: <sip:ping@192.168.1.6>;tag=c525640fff36ea086dcfaa1c46a4ae180002v62
                    Max-Forwards: 70
                    CSeq: 61837 OPTIONS
                    
    582211mS Sip: SIPDialog f4d6a54c created, dialogs 1 txn_keys 1
    582212mS Sip: (f4d6a54c) ExtractContactFromMessage: cannot get Contact Header 2012
    582212mS Sip: SIPDialog::ExtractResponseParamsFromViaHeader remote sent_by: 192.168.1.6:5060 trunk
    582213mS Sip: SIPDialog::ExtractResponseParamsFromViaHeader remote sent by transport: SIP/2.0/UDP trunk
    582213mS Sip: (f4d6a54c) SendSIPResponse: OPTIONS code 200 SENT TO 192.168.1.6 5060
    582214mS SIP Reg/Opt Tx: 18
                    SIP/2.0 200 OK
                    Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bK90m65h202o00qibfm7o0
                    From: <sip:ping@192.168.1.6>;tag=c525640fff36ea086dcfaa1c46a4ae180002v62
                    Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002v62@192.168.1.6
                    CSeq: 61837 OPTIONS
                    Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,INFO,NOTIFY,UPDATE
                    Supported: timer
                    Server: IP Office 9.0.11.0 build 1003
                    To: <sip:ping@65185600.myisp>;tag=49b2df983080ecb5
                    Content-Type: application/sdp
                    Content-Length: 233
                    
                    v=0
                    o=UserA 2060316253 1458549376 IN IP4 0.0.0.0
                    s=Session SDP
                    c=IN IP4 0.0.0.0
                    t=0 0
                    m=audio 8000 RTP/AVP 8 0 18 4
                    a=rtpmap:8 PCMA/8000
                    a=rtpmap:0 PCMU/8000
                    a=rtpmap:18 G729/8000
                    a=fmtp:18 annexb=no
                    a=rtpmap:4 G723/16000
    582214mS Sip: (f4d6a54c) UpdateSIPCallState SIPDialog::INITIAL(0) -> SIPDialog::FINAL(28)

Many thanks in advance
 
you are reading the wrong part of the trace for the error message

I am seeing both 401 unauthorized & 403 forbidden messages here.

this indicates to me that either the Username/password is incorrect or possibly the provider is also checking source IP address which has changed.




Do things on the cheap & it will cost you dear
 
Are you trying to connect X-lite to the SIP trunk?

It should be setup as a SIP user in the IPO and you'll need a 3rd party endpoint license.

"Trying is the first step to failure..." - Homer
 
Yep, Xlite is an endpoint, you need an endpoint licence. It is not a SIP provider which is what you connect a trunk to :)

 
Besides what everyone else has said, it looks like you have your NAT setup incorrectly. You are sending your RFC1918 LAN IP to the ISP in your SIP options messages:

OPTIONS sip:65185600.myisp:5060;maddr=192.168.1.47 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKtkcp4n3010t1gijaq5o1
Call-ID: 3a44581b2ac808a1dcdae60f4daf5dd10002v52@192.168.1.6
To: sip:ping@65185600.myisp


You need to go back over your trunk settings and put your public IP address in the correct field and verify your NAT settings.
 
Hi ,

Can you please update us how you have solve this issue.

Regards,
 
Walking you through that here is tedious to say the least and has been done multiple times with other products but they are all the same as they are all SIP.

Here the basics
All SIP extensions use 3 settings.
- User name
- extension number
- password (under user - telephony - supervisor settings)

with that info you can play and should get it probably done as it is just a matter of where you enter that information in the application to make it work.
Make sure you have the third party IP endpoint license otherwise you will get mad as it will never work.

Joe W.

FHandw, ACSS (SME)


"This is the end of the world, make sure to buy your T-shirt before it is too late"
Original expression of my daughter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top