Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Voice Gateway API (VGAPI) Developer Center
Overview
Documentation
Community
Testing
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to VXML-API
Direct SIP call
Threads [
Previous
|
Next
]
Showing 1 - 20 of 34 results.
Items per Page
(Changing the value of this field will reload the page.)
5
10
20
30
50
75
Page
(Changing the value of this field will reload the page.)
1
2
of 2
First
Previous
Next
Last
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
Direct SIP call
sip
ios
Answer
8/6/12 9:37 AM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi,
We have a scenario where the call is coming directly over VoIP on the Cisco Platform.
In normal cases, the call comes in as PSTN and then we forward the request to the VXML server to fetch the app. But here the call is a direct SIP Call to the Cisco router.
Is there a way to configure a dial-peer to process the SIP call directly? (Sorry, if this a very basic question)
Thanks
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
8/6/12 11:43 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
There is no specific configuration required on a dial-peer to process the SIP call directly.Just based on the destination-pattern the calls will treated accordingly.
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
8/6/12 12:02 PM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anusha,
Thanks for your quick reply. So a Cisco router (such as 3945) can indeed receive a SIP call provided I configure the dial-peer correctly? So, if the IP address of the router is 192.168.10.10, I can make a call to the router using SIP:4680@192.168.10.10:5060 directly?
where 4680 is the DID of the voice application that it will map to (based on the dial-peer config)
In this scenario, I will not be needing any E1 trunk right?
Thanks,
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
8/6/12 12:17 PM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
Yes it should work and it will not require E1 trunk for this case.
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
8/6/12 12:18 PM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Thanks Anusha. That helps a great deal.
Regards
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
8/7/12 10:02 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I am trying to figure out the right configuration for such a dial-peer. Most examples in the docs talk about calls from POTS. Can you please help me out here.
We have the following dial-peer that we were using with for POTS.
dial-peer voice 500 pots
service myapp
incoming called-number .T
direct-inward-dial
port 0/0/0:15
Can I simply change change pots to voip as follows?
dial-peer voice 500 voip
service myapp
incoming called-number .T
direct-inward-dial
port 0/0/0:15
Here 'myapp' is a VXML application hosted on a server, configured as below:
application
service myapp http://192.168.10.60:8080/index.vxml
thanks
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
8/7/12 11:49 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
HI Anupam,
When configuring the VOIP dial-peers there is no need for the DID and port configurations rather it should be as follows
dial-peer voice 2 voip
service myapp
destination-pattern .T
session-target ipv4:10.0.0.4
dtmf-relay xxxx
Where the destination-pattern and session target refer as following
destination-pattern 919…….
(calls with the digits 919+7 more digits will match this dial-peer)
session target ipv4:192.168.1.1
( the VOIP call will be sent to 192.168.1.1 when dial-peer is matched)
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
8/7/12 12:00 PM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Thanks Anusha.
So if the Cisco router's IP address is 192.168.10.10 and the SIP call is expected in the format SIP:87654@192.168.10.10 , then :
- the destination pattern would be 'destination-pattern 87654'
and since we are using the Cisco IOS VXML Browser here, the session target will be the
Cisco router's IP
only:
- session target ipv4:192.168.10.10
Can you please confirm if our understanding is correct here.
Thanks
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
8/7/12 12:47 PM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
Yes you are right. For more clarity here is an example. Assume the call is coming from 3100 to 7100 and you are trying to load the application in the router where 7 series phones are connected, then the configuration will be as follows
!
dial-peer voice 3 voip
description "Pointing to SIP Dial-peer in 2800"
destination-pattern 31..
session protocol sipv2
session target ipv4:10.78.236.53
incoming called-number [6,7]1..
dtmf-relay sip-notify
codec g711ulaw
!
For more details you could refer to the dial-peer configuration in the following location
http://www.cisco.com/en/US/docs/ios/12_3/vvf_c/dial_peer/dp_confg.html#wp1066941
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
8/7/12 12:56 PM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Thanks Anusha!
This is great information.
Regards
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
8/31/12 11:03 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anusha
With the above setup, when we make a SIP call to the Cisco router from a soft phone, we get back 488 (Not Acceptable Media). We were expecting it to be a codec issue and tweaked the config as follows but still getting a 488.
dial-peer inbound selection sip-trunk
sip-ua
g729-annexb override
Also, here is the trace of INVITE and the response:
INVITE sip:4000@203.122.28.219:5060 SIP/2.0
Via: SIP/2.0/UDP 9.126.106.243;branch=z9hG4bK097e6af30000003e5040841500000b9f0000000c;rport
From: "unknown" <sip:9.126.106.243>;tag=3d6c2e36bfef
To: <sip:4000@203.122.28.219:5060>
Contact: <sip:9.126.106.243>
Call-ID: 14C013012D79467883EA43B1DD6F64300x097e6af3
CSeq: 1 INVITE
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 368
Content-Type: application/sdp
Supported: replaces,norefersub,timer
v=0
o=- 3555394197 3555394197 IN IP4 9.126.106.243
s=SJphone
c=IN IP4 9.126.106.243
t=0 0
m=audio 49164 RTP/AVP 3 97 98 8 0 101
c=IN IP4 9.126.106.243
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=setup:active
a=sendrecv
SIP/2.0 488 Not Acceptable Media
Via: SIP/2.0/UDP 9.126.106.243:5060;branch=z9hG4bK097e6af30000003e5040841500000b9f0000000c;rport
From: "unknown" <sip:9.126.106.243>;tag=3d6c2e36bfef
To: <sip:4000@203.122.28.219:5060>;tag=EC2C840-563
Date: Fri, 31 Aug 2012 09:52:04 GMT
Call-ID: 14C013012D79467883EA43B1DD6F64300x097e6af3
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 1 INVITE
Allow-Events: telephone-event
Reason: Q.850;cause=65
Content-Length: 0
Can you please help us out here? (Sorry if this is a broad query - but if you can guide us in a direction that we can explore, that'll be great) Thanks!
Regards
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
8/31/12 11:33 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
Please try one of the below options and see whether your issue gets resolved.
- Configure 'g729br8' instead of 'g729r8' on SIP GW, if that is the correct codec.
- Configure 'voice service voip -> sip -> g729 annexb-all' on SIP GW to allow GW to accept either forms of g729.
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
9/3/12 6:35 AM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anusha,
Thanks for the suggestion. After trying the above command and strudying the logs etc. we figured out that the SIP phone that we are using to test does not support G729 but supports G711. So we made the folowing addition in the config now:
voice class codec 1
codec preference 1 g711ulaw
But we still get a 488 back when we make a call. Here's the INVITE and the response.
Received:
INVITE sip:4000@203.122.28.219:5060 SIP/2.0
Via: SIP/2.0/UDP 122.248.183.1:44301;branch=z9hG4bK097e6af3000000185044404100002ffe00000000;rport
From: "unknown" <sip:9.126.106.243>;tag=2cf42bc1158
To: <sip:4000@203.122.28.219:5060>
Contact: <sip:122.248.183.1:44301>
Call-ID: BE0AC393EF6E467BB0604E8244F12F3E0x097e6af3
CSeq: 1 INVITE
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 368
Content-Type: application/sdp
Supported: replaces,norefersub,timer
v=0
o=- 3555638977 3555638977 IN IP4 122.248.183.1
s=SJphone
c=IN IP4 122.248.183.1
t=0 0
m=audio 30142 RTP/AVP 3 97 98 8 0 101
c=IN IP4 122.248.183.1
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=setup:active
a=sendrecv
036262: *Sep 3 05:51:42.802: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 488 Not Acceptable Media
Via: SIP/2.0/UDP 122.248.183.1:44301;branch=z9hG4bK097e6af3000000185044404100002ffe00000000;rport
From: "unknown" <sip:9.126.106.243>;tag=2cf42bc1158
To: <sip:4000@203.122.28.219:5060>;tag=1D59CEA8-2695
Date: Mon, 03 Sep 2012 05:51:42 GMT
Call-ID: BE0AC393EF6E467BB0604E8244F12F3E0x097e6af3
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 1 INVITE
Allow-Events: telephone-event
Reason: Q.850;cause=65
Content-Length: 0
Can you please give us a clue on what could be wrong here (I guess there might be something with the config that we still need to tweak)
Thanks
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
9/3/12 6:58 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
May I know which IOS version is being used in your case?
Thanks,
Anusha.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
9/3/12 7:53 AM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anusha,
Thanks again for your prompt response.
This is the IOS version output from 'show ver':
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T8, RELEASE SOFTWARE (fc3)
Also, in the meanwhile, I added the following line to the dial-peer:
voice-class codec 1
and the call seems to be going through now (as in, it does not throw a 488)
But still, we are not able to hear the audio. All we are doing in the VXML is playing a wav file and exiting. (This vxml is constructed fine since we have already tested it with another instance of a Cisco router sometime back)
From the logs, it seems that the file did play and the application exited properly but we cant hear anything. I suspect it may still be a config issue but couldnt figure it out as yet.
Thanks
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
9/3/12 8:16 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
Could you please share us the running config along with the logs with the following debugs enabled.
deb voip app
deb ccsip all
Let me see whether I could trace anything out of this !
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
9/3/12 9:25 AM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anushka,
Thanks for helping out on this. Sent you the logs and configuration on email.
Regards
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
9/3/12 10:35 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
Try adding the following cli to the 'dial-peer voice 2 voip' and see whether it resolves your issue
session protocol sipv2
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anupam Jain
Posts:
31
Join Date:
6/5/12
Recent Posts
RE: Direct SIP call
Answer
9/3/12 10:44 AM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anusha,
I added the following
session protocol sipv2
dtmf-relay sip-notify
in the dial-peer but the problem still persists :-( Cant hear anything on the call.
The dial-peer now looks like the following:
dial-peer voice 2 voip
service myapp
destination-pattern 4000
voice-class codec 1
session protocol sipv2
session target ipv4:203.122.28.219
incoming called-number 4000
dtmf-relay sip-notify
Thanks
Anupam
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: Direct SIP call
Answer
9/4/12 7:28 AM as a reply to Anupam Jain.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anupam,
Is it possible to share us the VXML doc along with the audio files to test the same in our local lab. Meanwhile if you have valid developer support contract id please raise a developer support case for the same to track this issue. Also mention the clear call flow that you are trying in your setup.
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Showing 1 - 20 of 34 results.
Items per Page
(Changing the value of this field will reload the page.)
5
10
20
30
50
75
Page
(Changing the value of this field will reload the page.)
1
2
of 2
First
Previous
Next
Last