Solved

DTMF problem

Posted on 2008-10-02
6
547 Views
Last Modified: 2013-12-27
Dear Sir,
 
I have the following Scenario:
 
1- I have a DID number from Voxbone mapped to my asterisk server with RFC 2833 protocol used for DTMF
2- On asterisk Server I configured an incoming peer that receives calls from VoxBone and send calls to a2billing context as follow:
 
sip.conf
[sip_proxy1]
type=peer
context=a2billing
host=81.201.82.39
dtmfmode=RFC2833
rfc2833compensate=yes
 
extensions.conf
[a2billing]
exten => _X.,1,Gotoif($[${EXTEN} = 111] ? 21)
exten => _X.,2,DeadAGI,a2billing.php
exten => _X.,3,Wait,2
exten => _X.,4,Hangup
exten => _X.,21,Playback(AR_GetGiveToID)
exten => _X.,22,Wait(2)
exten => _X.,23,Record(/tmp/asterisk-recording:ulaw,,5)
exten => _X.,24,Wait(2)
exten => _X.,25,Playback(/tmp/asterisk-recording)
exten => _X.,26,Wait(2)
exten => _X.,27,Hangup
 
My problem is that when entring the PIN number I did not notice that any DTMF digits has been sent from VoxBone to my asterisk server, and the IVR continue asking to enter the PIN number all the time as you can see in the below log messages:
 
----->
    -- <SIP/voxbone.com-0a02e0d8> Playing 'prepaid-enter-pin-number' (language 'en')
  a2billing.php: file:Class.A2Billing.php - line:1790 - RES DTMF :
  a2billing.php: file:Class.A2Billing.php - line:1794 - CARDNUMBER ::>
  a2billing.php: file:Class.A2Billing.php - line:1798 - PREPAID-NO-CARD-ENTERED
  a2billing.php: file:Class.A2Billing.php - line:1780 - PREPAID-NO-CARD-ENTERED
  a2billing.php: file:Class.A2Billing.php - line:1788 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
    -- <SIP/voxbone.com-0a02e0d8> Playing 'prepaid-enter-pin-number' (language 'en')
  a2billing.php: file:Class.A2Billing.php - line:1790 - RES DTMF :
  a2billing.php: file:Class.A2Billing.php - line:1794 - CARDNUMBER ::>
  a2billing.php: file:Class.A2Billing.php - line:1798 - PREPAID-NO-CARD-ENTERED
  a2billing.php: file:Class.A2Billing.php - line:1780 - PREPAID-NO-CARD-ENTERED
  a2billing.php: file:Class.A2Billing.php - line:1788 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
    -- <SIP/voxbone.com-0a02e0d8> Playing 'prepaid-enter-pin-number' (language 'en')
 
What do you think the issue could be?
 
Regards
0
Comment
Question by:michofreiha
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:MrJemson
ID: 22630579
Try:

dtmfmode=auto

Also, what codec are you using for the voice channel? If g.729, try ulaw/alaw and test again.
0
 
LVL 9

Author Comment

by:michofreiha
ID: 22631728
When i used dtmfmode=auto it worked better but not all the time...Please let me know where I can find in my SIP packet the DTMF type sent by the carrier?

Regards
0
 
LVL 8

Expert Comment

by:MrJemson
ID: 22631880
If that is the case, I would suggest trying dtmfmode=inband

dtmfmode=auto will use inband if it finds that rfc2833 is unsupported by your carrier.
If its not working with rfc2833, and sometimes works with auto, I would imagine that the negotiation is failing sometimes and not others.

As for the DTMF type in the SIP packet, I am not sure as I have never had to diagnose anything like that.
It may be easier for you to check with the carrier what they are using if inband is still having issues.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 9

Author Comment

by:michofreiha
ID: 22632095
Dear MrJemson,

I turned on the rtp debug on my asterisk server and found out that sometimes the DTMF packets with RFC2833 format appears on the Logs  and sometimes not...Do you think the Provider is not sending these packets or the asterisk is not listing them in the RTP packet flow?

Regards
0
 
LVL 9

Author Comment

by:michofreiha
ID: 22634659
Dear Sir,

The DID that provide to us the DID number said that asterisk server is not sending back OK message to their server that's why they are not sending us the DTMF packets...How to force Asterisk server t reply back by sending OK message?

Regards
0
 
LVL 8

Accepted Solution

by:
MrJemson earned 500 total points
ID: 22646473
Still sounding like a bad negotiation to me...
Did you try inband?
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn (http://news.bbc.co.uk/1/hi/business/7864804.stm) because of bad weather. This article was c…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now