I have telephone system which should call to users (via external voip account - net2phone) by creating file and inserting in into queue. It works ok. I create file like this:
CallerID: Damian <6002>
and move that file to /var/spool/asterisk/outgoing.
Call is connected and now I need to play marketing offer and ask client to pressing 1 on telephone keybord if is interested in that offer.
Problem is thet if client press any key, signal doesn’t return to asterisk.
I add that in extension.conf for extension 101 I set:
exten => 101,1,Answer
exten => 101,n,Playback(asterisk-recording1)
exten => 101,n,Playback(beep);
exten => 101,n,WaitExten(10,m);
exten => 101,n,Hangup();
Problem in on WaitExten(10,m) instruction. Digits are not handled.
But if I call on internal asterisk account for example:
all is ok and WaitExten work correctly.
So how handle pressing keys via external provider.
I add that my net2phone account in sip.conf is defined:
register => myaccount:email@example.com
insecure = very;
canreinvite = yes;
What and where should I change for handling pressing keys via net2phone account of any other external provider.