[quote="ajb":fit3ixp6]Thanks for reporting this. This module has been written by our community. I'd like to fix this in the package, but could you write a short explanation about this change? I have no idea what happens here.
Thanks in advance,
Adam[/quote:fit3ixp6]
Hey Adam,
This script sending an action to asterisk cli (you can think asterisk command console). If Context seted default asteriks trying to find extention in internal numbers pool.
I'll try to explane an example.
$cmd = "Action: Originate\r\nChannel: [b]sip/102[/b]\r\nContext: default\r\nExten: [b]+90212100000[/b]\r\nPriority: 1\r\nCallerid: +902161000000\r\nTimeout: 10000\r\n\r\n";
This code says to asterisk:
Call +90212100000 as +902161000000 while 102 extention sip channel.
Asterisk giving that answer:
Hey yo! I have no any internal +90212100000 sip number. I cant!
But if we use that syntax:
$cmd = "Action: Originate\r\nChannel: [b]sip/102[/b]\r\nContext: from-internal\r\nExten: [b]+90212100000[/b]\r\nPriority: 1\r\nCallerid: +902161000000\r\nTimeout: 10000\r\n\r\n";
This code says to asterisk:
Call +90212100000 as +902161000000 while from 102 extention sip channel.
Asterisk givin that answer:
Oh yeaa! Firstly I'll call 102 internal extention and than i'll call outline number +90212100000 as +902161000000 . Roger that!