I have a standard install of PIAF 1.7.5.5 Bronze with Incredible PBX installation on top of that.
Initially I was not getting any incoming calls to either my GV # or to my Sipgate #. I then added an inbound route inserting my Sipgate # in the DID and I am now receiving calls to both my Google # as well as my Sipgate #. ****EDIT(I have since deleted this route as it may conflict with the gv-ringback route, but still am not able to dial out. I am also no longer able to receive calls directly to either my GV or Sipgate numbers if I have show Caller's ID in GV set to show caller's, but can receive calls directly to my GV number, but not my Sipgate numbers if I have show Caller's ID in GV set to show mine.)
Problem is I can not make any outgoing calls. I basically get stuck in park and the call is never connected. These are from my extensions.conf file:
[custom-gv]
exten => _X.,1,Wait(1)
exten => _X.,n,Set(ACCTNAME= [FONT="]my_username[/FONT]@gmail.com)
exten => _X.,n,Set(ACCTPASS= [FONT="]my_gmail_email_account_password [/FONT])
exten => _X.,n,Set(RINGBACK= [FONT="]my_sipgate_did_number [/FONT])
exten => _X.,n,Set(CALLPARK=75)
exten => _X.,n,Playback(pls-wait-connect-call)
exten => _X.,n,System(gvoice -e ${ACCTNAME} -p ${ACCTPASS} call ${EXTEN} ${RINGBACK} 3)
exten => _X.,n,Set(GROUP()=gvout)
exten => _X.,n,Set(PARKINGEXTEN=${CALLPARK})
exten => _X.,n,ParkAndAnnounce(pbx-transfer
ARKED,45,Console/dsp)
[custom-park]
exten => s,1,Wait(4)
;exten => s,2,Set(GVNUM= [FONT="]my_gvoice_number[/FONT])
exten => s,n,Set(CALLPARK=75)
exten => s,n,NoOp(**CALLERID: ${CALLERID(all)})
exten => s,n,GotoIf($[ ${GROUP_COUNT(gvout)} = 1 ]?parked:notparked)
exten => s,n(parked),ParkedCall(${CALLPARK})
exten => s,n(notparked),Goto(from-trunk,gv-incoming,1)
Please note that 'exten => s,2,Set(GVNUM= [FONT="]my_gvoice_number[/FONT])' was edited out under [custom-park] by the install. I removed the semicolon and restarted PIAF, but that did not help so I placed it back.
The following is the Asterisk output when trying to call 212-639-2000 (my credentials have been replaced):
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [2126392000@from-internal:1] Macro("SIP/701-00000000", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/701-00000000", "AMPUSER=701") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/701-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/701-00000000", "1?Set(REALCALLERIDNUM=701)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/701-00000000", "AMPUSER=701") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/701-00000000", "AMPUSERCIDNAME=701") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/701-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/701-00000000", "AMPUSERCID=701") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/701-00000000", "CALLERID(all)="701" <701>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/701-00000000", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/701-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/701-00000000", "Using CallerID "701" <701>") in new stack
-- Executing [2126392000@from-internal:2] Set("SIP/701-00000000", "_NODEST=") in new stack
-- Executing [2126392000@from-internal:3] Macro("SIP/701-00000000", "record-enable,701,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/701-00000000", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/701-00000000", "recordingcheck,20100904-235957,1283637597.0") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20100904-235957,1283637597.0: Outbound recording not enabled
-- <SIP/701-00000000>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/701-00000000", "") in new stack
-- Executing [2126392000@from-internal:4] Macro("SIP/701-00000000", "dialout-enum,6,2126392000,,") in new stack
-- Executing [s@macro-dialout-enum:1] GosubIf("SIP/701-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-enum:2] Macro("SIP/701-00000000", "outbound-callerid,6") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/701-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/701-00000000", "0?Set(REALCALLERIDNUM=701)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/701-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/701-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/701-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/701-00000000", "TRUNKOUTCID=my_gvoice_number") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/701-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/701-00000000", "1?Set(CALLERID(all)=my_gvoice_number)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/701-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/701-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-enum:3] Set("SIP/701-00000000", "OUTBOUND_GROUP=OUT_6") in new stack
-- Executing [s@macro-dialout-enum:4] GotoIf("SIP/701-00000000", "0?nomax") in new stack
-- Executing [s@macro-dialout-enum:5] GotoIf("SIP/701-00000000", "0?nochans") in new stack
-- Executing [s@macro-dialout-enum:6] Set("SIP/701-00000000", "DIAL_NUMBER=2126392000") in new stack
-- Executing [s@macro-dialout-enum:7] Set("SIP/701-00000000", "DIAL_TRUNK=6") in new stack
-- Executing [s@macro-dialout-enum:8] ExecIf("SIP/701-00000000", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 1+NXXNXXXXXX matched. 2126392000 -> 12126392000
-- <SIP/701-00000000>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-enum:9] AGI("SIP/701-00000000", "enumlookup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/enumlookup.agi
-- enumlookup.agi: Looking up 12126392000 on e164.org via dns_get_record
-- enumlookup.agi: Looking up 12126392000 on e164.arpa via dns_get_record
-- enumlookup.agi: Looking up 12126392000 on e164.info via dns_get_record
-- enumlookup.agi: Setting DIALARR to
-- <SIP/701-00000000>AGI Script enumlookup.agi completed, returning 0
-- Executing [s@macro-dialout-enum:10] GotoIf("SIP/701-00000000", "1?end") in new stack
-- Goto (macro-dialout-enum,s,18)
-- Executing [s@macro-dialout-enum:18] NoOp("SIP/701-00000000", "Exiting macro-dialout-enum") in new stack
-- Executing [2126392000@from-internal:5] Macro("SIP/701-00000000", "dialout-trunk,5,2126392000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/701-00000000", "DIAL_TRUNK=5") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/701-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/701-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/701-00000000", "DIAL_NUMBER=2126392000") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/701-00000000", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/701-00000000", "OUTBOUND_GROUP=OUT_5") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/701-00000000", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/701-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/701-00000000", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/701-00000000", "outbound-callerid,5") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/701-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/701-00000000",
Initially I was not getting any incoming calls to either my GV # or to my Sipgate #. I then added an inbound route inserting my Sipgate # in the DID and I am now receiving calls to both my Google # as well as my Sipgate #. ****EDIT(I have since deleted this route as it may conflict with the gv-ringback route, but still am not able to dial out. I am also no longer able to receive calls directly to either my GV or Sipgate numbers if I have show Caller's ID in GV set to show caller's, but can receive calls directly to my GV number, but not my Sipgate numbers if I have show Caller's ID in GV set to show mine.)
Problem is I can not make any outgoing calls. I basically get stuck in park and the call is never connected. These are from my extensions.conf file:
[custom-gv]
exten => _X.,1,Wait(1)
exten => _X.,n,Set(ACCTNAME= [FONT="]my_username[/FONT]@gmail.com)
exten => _X.,n,Set(ACCTPASS= [FONT="]my_gmail_email_account_password [/FONT])
exten => _X.,n,Set(RINGBACK= [FONT="]my_sipgate_did_number [/FONT])
exten => _X.,n,Set(CALLPARK=75)
exten => _X.,n,Playback(pls-wait-connect-call)
exten => _X.,n,System(gvoice -e ${ACCTNAME} -p ${ACCTPASS} call ${EXTEN} ${RINGBACK} 3)
exten => _X.,n,Set(GROUP()=gvout)
exten => _X.,n,Set(PARKINGEXTEN=${CALLPARK})
exten => _X.,n,ParkAndAnnounce(pbx-transfer
[custom-park]
exten => s,1,Wait(4)
;exten => s,2,Set(GVNUM= [FONT="]my_gvoice_number[/FONT])
exten => s,n,Set(CALLPARK=75)
exten => s,n,NoOp(**CALLERID: ${CALLERID(all)})
exten => s,n,GotoIf($[ ${GROUP_COUNT(gvout)} = 1 ]?parked:notparked)
exten => s,n(parked),ParkedCall(${CALLPARK})
exten => s,n(notparked),Goto(from-trunk,gv-incoming,1)
Please note that 'exten => s,2,Set(GVNUM= [FONT="]my_gvoice_number[/FONT])' was edited out under [custom-park] by the install. I removed the semicolon and restarted PIAF, but that did not help so I placed it back.
The following is the Asterisk output when trying to call 212-639-2000 (my credentials have been replaced):
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [2126392000@from-internal:1] Macro("SIP/701-00000000", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/701-00000000", "AMPUSER=701") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/701-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/701-00000000", "1?Set(REALCALLERIDNUM=701)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/701-00000000", "AMPUSER=701") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/701-00000000", "AMPUSERCIDNAME=701") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/701-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/701-00000000", "AMPUSERCID=701") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/701-00000000", "CALLERID(all)="701" <701>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/701-00000000", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/701-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/701-00000000", "Using CallerID "701" <701>") in new stack
-- Executing [2126392000@from-internal:2] Set("SIP/701-00000000", "_NODEST=") in new stack
-- Executing [2126392000@from-internal:3] Macro("SIP/701-00000000", "record-enable,701,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/701-00000000", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/701-00000000", "recordingcheck,20100904-235957,1283637597.0") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20100904-235957,1283637597.0: Outbound recording not enabled
-- <SIP/701-00000000>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/701-00000000", "") in new stack
-- Executing [2126392000@from-internal:4] Macro("SIP/701-00000000", "dialout-enum,6,2126392000,,") in new stack
-- Executing [s@macro-dialout-enum:1] GosubIf("SIP/701-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-enum:2] Macro("SIP/701-00000000", "outbound-callerid,6") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/701-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/701-00000000", "0?Set(REALCALLERIDNUM=701)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/701-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/701-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/701-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/701-00000000", "TRUNKOUTCID=my_gvoice_number") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/701-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/701-00000000", "1?Set(CALLERID(all)=my_gvoice_number)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/701-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/701-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-enum:3] Set("SIP/701-00000000", "OUTBOUND_GROUP=OUT_6") in new stack
-- Executing [s@macro-dialout-enum:4] GotoIf("SIP/701-00000000", "0?nomax") in new stack
-- Executing [s@macro-dialout-enum:5] GotoIf("SIP/701-00000000", "0?nochans") in new stack
-- Executing [s@macro-dialout-enum:6] Set("SIP/701-00000000", "DIAL_NUMBER=2126392000") in new stack
-- Executing [s@macro-dialout-enum:7] Set("SIP/701-00000000", "DIAL_TRUNK=6") in new stack
-- Executing [s@macro-dialout-enum:8] ExecIf("SIP/701-00000000", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 1+NXXNXXXXXX matched. 2126392000 -> 12126392000
-- <SIP/701-00000000>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-enum:9] AGI("SIP/701-00000000", "enumlookup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/enumlookup.agi
-- enumlookup.agi: Looking up 12126392000 on e164.org via dns_get_record
-- enumlookup.agi: Looking up 12126392000 on e164.arpa via dns_get_record
-- enumlookup.agi: Looking up 12126392000 on e164.info via dns_get_record
-- enumlookup.agi: Setting DIALARR to
-- <SIP/701-00000000>AGI Script enumlookup.agi completed, returning 0
-- Executing [s@macro-dialout-enum:10] GotoIf("SIP/701-00000000", "1?end") in new stack
-- Goto (macro-dialout-enum,s,18)
-- Executing [s@macro-dialout-enum:18] NoOp("SIP/701-00000000", "Exiting macro-dialout-enum") in new stack
-- Executing [2126392000@from-internal:5] Macro("SIP/701-00000000", "dialout-trunk,5,2126392000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/701-00000000", "DIAL_TRUNK=5") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/701-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/701-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/701-00000000", "DIAL_NUMBER=2126392000") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/701-00000000", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/701-00000000", "OUTBOUND_GROUP=OUT_5") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/701-00000000", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/701-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/701-00000000", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/701-00000000", "outbound-callerid,5") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/701-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/701-00000000",