Help on contexts on where to place system call in extensions_custom.conf?

crashtestdummy

New Member
Joined
Jan 27, 2009
Messages
16
Reaction score
0
Hello there,


I am attempting to follow either http://www.mythdora.com/?q=node/5001 or http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf to pass caller id information to xyac running on another system.


Following http://www.voip-info.org/wiki/view/Asterisk+tips+MythTV+integration seems to imply that one way to accomplish my goal is to get PIAF to issue a system call when someone dials my one extension in my simple home PIAF environment. The example given is:
exten => s,1,System(/bin/echo -n -e "'@CALL${CALLERIDNAME} ~${CALLERIDNUM}'" | nc -w 1 192.168.1.200 10629)


My basic question is where to place this. I assume this would be a manual entry in extensions_custom.conf, but I am unsure of the context ([????]) where it should go. Any thoughts on this? Since the priority is 1, I assume this line has to be the first line in the context, right?


http://www.mythdora.com/?q=node/5001 has a more complex solution which did not work for me. Looking at the /var/log/asterisk/full log file, I could not see the issue, but I am new to asterisk.


I have xyac installed on my other system, and a test command such as “echo -n -e "test" | nc -w 1 192.168.1.200 10629” works, so I know that I do not have any firewall or target machine issues.


Thanks for your help or pointers.


Mike
 
If you want this to happen on inbound calls, I would put this in

[from-pstn-custom]

You will have to create this context in extensions_custom.conf. Inbound calls on PIAF are usually in either the from-trunk or from-pstn context. The from-trunk context simply points to from-pstn. The first line in from-pstn is an include=>from-pstn-custom.

If Asterisk finds from-pstn-custom in extensions_custom.conf, it will process the code there first, then off to the rest of from-pstn.
 
Hello there,


I am attempting to follow either http://www.mythdora.com/?q=node/5001 or http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf to pass caller id information to xyac running on another system.


Following http://www.voip-info.org/wiki/view/Asterisk+tips+MythTV+integration seems to imply that one way to accomplish my goal is to get PIAF to issue a system call when someone dials my one extension in my simple home PIAF environment. The example given is:
exten => s,1,System(/bin/echo -n -e "'@CALL${CALLERIDNAME} ~${CALLERIDNUM}'" | nc -w 1 192.168.1.200 10629)


My basic question is where to place this. I assume this would be a manual entry in extensions_custom.conf, but I am unsure of the context ([????]) where it should go. Any thoughts on this? Since the priority is 1, I assume this line has to be the first line in the context, right?


http://www.mythdora.com/?q=node/5001 has a more complex solution which did not work for me. Looking at the /var/log/asterisk/full log file, I could not see the issue, but I am new to asterisk.


I have xyac installed on my other system, and a test command such as “echo -n -e "test" | nc -w 1 192.168.1.200 10629” works, so I know that I do not have any firewall or target machine issues.


Thanks for your help or pointers.


Mike

Mike;

The caller ID superfecta now has a YAC output source - you might consider looking into it.
 
Solved

Thanks for the help.

I was able to solve this by figuring out two items.

The instructions at http://www.mythdora.com/?q=node/5001 forgot to add the (send) label to the system call line. I added a post to that page to highlight this.

Also, the instructions to use "amportal restart" did not appear to cause my system to read in my config file changes. That was a revelation which allowed me to actually debug the code lines.

Mike
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top