Hi!
I’m trying to integrate asterisk with vtiger-crm, but i have an issue, dial only works for internal extensions, when i try to dial an external number vtiger sends the number and asterisk tries to dial up as sip extension.
This is the context for vtiger:
[vtiger]
exten = x.,1,Set(CALLFILENAME=${STRFTIME(${EPOCH},OUT%d%m%y_%H-%M)}${CALLERID(num)}${EXTEN})
exten = _x.,2,MixMonitor(/var/spool/asterisk/monitor/${CALLFILENAME}.wav,b)
exten = _x.,3,Set(CDR(recordpath)=/var/spool/asterisk/monitor/${CALLFILENAME}.wav,b)
exten = _x.,4,Dial(SIP/${EXTEN}
This is the outbound call verbose:
-- SIP/2000-0000001d answered
-- Executing [00XXX135876125@vtiger:1] Set("SIP/2000-0000001d", "CALLFILENAM E=OUT_010824_10-52_2000_00XXX135876125") in new stack
-- Executing [00XXX135876125@vtiger:2] MixMonitor("SIP/2000-0000001d", "/var /spool/asterisk/monitor/OUT_010824_10-52_2000_00XX135876125.wav,b") in new stac k
== Begin MixMonitor Recording SIP/2000-0000001d
– Executing [00XXX135876125@vtiger:3] Set(“SIP/2000-0000001d”, “CDR(recordp ath)=/var/spool/asterisk/monitor/OUT_010824_10-52_2000_00XXX135876125.wav,b”) in new stack
– Executing [00XXX135876125@vtiger:4] Dial(“SIP/2000-0000001d”, “SIP/00XXX1 35876125”) in new stack