Moderators: Moderator, Support
1)What do I use to reference the variable of the number we are dialing out?
2)If I'm running Elastix 2.4 on CentOS, would you recommend your first or second option?
3)Which file do I edit to modify the master outbound dial plan?
4)Why did you specify *764 as the extension / feature code?
ambiorixg12 wrote:The 2 issues that you have mentioned are not related to the curl command. It happens because are missing necessary steps to make the system works as you are expecting.
the callerid issue could be easily solved using like this
exten=>_x.,1,Noop(${CALLERID(NUM)})
same=> n,ExecIf($["${CALLERID(NUM)}"= "101"]?Set(CALLERID(all)=MY-COMPANY-NAME< 7275551111>))
same=>n,Dial(SIP/${EXTEN}@${mytrunk})
the other issue I dont really understand what you mean,
navaismo wrote:Using FreepBX based systems is kind tricky when it is about editing files. So if you are not sure how things are working you have to do 2 things at least.
The first one is take a deep look in your asterisk cli to see what is happenning when you call out or call in or whatever, after following line by line you will be able to edit the proper portion of code.
The second one is to decide if you want to add things in the extensions_custom.conf file by including your code in the the *_custom contexts or editing the extensions_override.conf file. If you choose the override method you will able to add lines to the existing code in the extensions.conf file(the additional) where lays all the dailplan. You only need to copy the wholecontext and add/remove the desired lines and put into the override file. In that way you preserve the changes even after updated or reload.
So my advice is to stoip guessing and start to look at your cli and your outgoing dialplan once you have the location use one of those files(override or custom) and make your changes.
exten => _+1NXXNXXXXXX,2,System(curl http://cid.mywebsite.com/api/callerid/?did=${EXTEN})&outbound=true
Technician called out to phone number 17275551234
http://cid.mywebsite.com/api/callerid/?did=${EXTEN})
Customer called in from phone number 17275551234
Customer called in from phone number 17275551234 using line 18009995000
-- Executing [56699@myvars:1] NoOp("SIP/102-0000014e", " /56699/ /102/ /56699/") in new stack
-- Executing [56699@myvars:2] Hangup("SIP/102-0000014e", "") in new stack
Users browsing this forum: No registered users and 1 guest