Hi,
I'm using a tapi with Piaf so we can call without dialing the number on the phone.
We use the following tapi: http://www.ipcom.at/en/telephony/siptapi/
Now when this tapi is installed i can use with my windows computer the dialer.exe. This works perfect.
But when we using it with our program and we click the number then our phone rings. When we pickup we hear first the dictation of the number (we don't have that when using dialer.exe) I have attached a log. I think their is any macro or something that does this but can't find it.
Do any of you have an idea?
I'm using a tapi with Piaf so we can call without dialing the number on the phone.
We use the following tapi: http://www.ipcom.at/en/telephony/siptapi/
Now when this tapi is installed i can use with my windows computer the dialer.exe. This works perfect.
But when we using it with our program and we click the number then our phone rings. When we pickup we hear first the dictation of the number (we don't have that when using dialer.exe) I have attached a log. I think their is any macro or something that does this but can't find it.
Do any of you have an idea?
Code:
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-06 13:22:15.677084'},'240','240','','','','s','from-internal','SIP/240-00000048','','',3,'','1475752935.89','1475752935.88','','','')]
-- Called SIP/240
-- Connected line update to SIP/240-00000047 prevented.
== Extension Changed 240[ext-local] new state InUse&Ringing for Notify User 247
-- SIP/240-00000048 is ringing
== Extension Changed 240[ext-local] new state InUse&Ringing for Notify User 247
== Extension Changed 240[ext-local] new state InUse for Notify User 247
-- Connected line update to SIP/240-00000047 prevented.
-- SIP/240-00000048 answered SIP/240-00000047
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-10-06 13:22:17.848396'},'240','240','240','','','240','from-internal','SIP/240-00000048','AppDial','(Outgoing Line)',3,'','1475752935.89','1475752935.88','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('ANSWER',{ts '2016-10-06 13:22:17.849462'},'240','240','240','','240','s','macro-dial-one','SIP/240-00000047','Dial','SIP/240,,TtrI',3,'','1475752935.88','1475752935.88','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('BRIDGE_START',{ts '2016-10-06 13:22:17.849534'},'240','240','240','','240','s','macro-dial-one','SIP/240-00000047','Dial','SIP/240,,TtrI',3,'','1475752935.88','1475752935.88','SIP/240-00000048','','')]
> 0x7f3e5c025380 -- Probation passed - setting RTP source address to 192.168.69.45:5008
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2016-10-06 13:22:19.99101'},'','','','','','s','from-internal','AsyncGoto/SIP/240-00000048','','',3,'','1475752939.90','1475752935.88','','','')]
-- Executing [0032477555631@from-internal-xfer:1] SayDigits("SIP/240-00000048", "32477555631,") in new stack
-- Executing [h@macro-dial-one:1] Macro("SIP/240-00000047", "hangupcall,") in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('BLINDTRANSFER',{ts '2016-10-06 13:22:19.100806'},'240','240','240','','240','s','macro-dial-one','SIP/240-00000047','Dial','SIP/240,,TtrI',3,'','1475752935.88','1475752935.88','AsyncGoto/SIP/240-00000048<ZOMBIE>','','')]
[2016-10-06 13:22:19] NOTICE[2367][C-00000030]: chan_sip.c:23363 handle_response_notify: Got OK on REFER Notify message
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/240-00000047", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/240-00000047", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("SIP/240-00000047", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/240-00000047' in macro 'hangupcall'
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/240-00000047'
-- <SIP/240-00000048> Playing 'digits/3.gsm' (language 'en')
[2016-10-06 13:22:19] ERROR[8825][C-00000030]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
== Spawn extension (macro-dial-one, s, 43) exited non-zero on 'SIP/240-00000047' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/240-00000047' in macro 'exten-vm'
== Spawn extension (from-internal, 240, 2) exited non-zero on 'SIP/240-00000047'
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2016-10-06 13:22:19.104897'},'','','','','','','macro-dial-one','AsyncGoto/SIP/240-00000048<ZOMBIE>','AppDial','(Outgoing Line)',3,'','1475752935.89','1475752935.88','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2016-10-06 13:22:19.104942'},'','','','','','','macro-dial-one','AsyncGoto/SIP/240-00000048<ZOMBIE>','AppDial','(Outgoing Line)',3,'','1475752935.89','1475752935.88','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2016-10-06 13:22:19.105436'},'240','240','240','','240','240','from-internal','SIP/240-00000047','','',3,'','1475752935.88','1475752935.88','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2016-10-06 13:22:19.105512'},'240','240','240','','240','240','from-internal','SIP/240-00000047','','',3,'','1475752935.88','1475752935.88','','','')]
-- <SIP/240-00000048> Playing 'digits/2.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/4.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/7.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/7.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/5.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/5.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/5.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/6.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/3.gsm' (language 'en')
-- <SIP/240-00000048> Playing 'digits/1.gsm' (language 'en')
-- Executing [0032477555631@from-internal-xfer:2] EAGI("SIP/240-00000048", "asteridex.agi,0032477555631") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/asteridex.agi
-- <SIP/240-00000048>AGI Script asteridex.agi completed, returning 0
-- Executing [0032477555631@from-internal-xfer:3] GotoIf("SIP/240-00000048", "0?97") in new stack
-- Executing [0032477555631@from-internal-xfer:4] NoOp("SIP/240-00000048", "Number to Dial: ") in new stack
-- Executing [0032477555631@from-internal-xfer:5] NoOp("SIP/240-00000048", "Person to Dial: ") in new stack
-- Executing [0032477555631@from-internal-xfer:6] Flite("SIP/240-00000048", ""Connecting to: . One moment please."") in new stack
-- <SIP/240-00000048> Playing '/tmp/flite_4314535.slin' (language 'en')
-- Executing [0032477555631@from-internal-xfer:7] Goto("SIP/240-00000048", "outbound-allroutes,,1") in new stack
-- Goto (outbound-allroutes,0032477555631,1)
-