Need a little help from the experts . . .
I'm trying to send the caller ID of an incoming call to a Windows application running on another machine. The original code is supposed to pick up the incoming call by adding lines to extensions.conf that match the SIP provider user ID. However I guess I shouldn't be modifying extension.conf and I want the lines to match all incoming calls not just those from one provider. Here is the context that is supposed to work the magic:
[from-pstn-custom]
exten => _X,1,Set(TIMEOUT(response)=300)
exten => _X,2,Set(res=${CURL('http://172.16.16.31:8080/xbmcCmds/x...ltIn(Notification(RING,+${CALLERID(num)}))')})
exten => _X,3,GotoIf($["${res}" = "<HTML><LI>DROP</HTML>"]?l1:l2)
exten => _X,n(l1),PlayBack(vm-goodbye)
exten => _X,n,HangUp()
exten => _X,n(l2),NoOp()
I changed the SIP user ID to _X to match anything, renamed the context to from-pstn-custom and put it in extension_custom.conf. I don't see anything in the Asterisk log file to say this context was ever run on an incoming call so I guess I'm doing something wrong, any suggestions?
Peter
I'm trying to send the caller ID of an incoming call to a Windows application running on another machine. The original code is supposed to pick up the incoming call by adding lines to extensions.conf that match the SIP provider user ID. However I guess I shouldn't be modifying extension.conf and I want the lines to match all incoming calls not just those from one provider. Here is the context that is supposed to work the magic:
[from-pstn-custom]
exten => _X,1,Set(TIMEOUT(response)=300)
exten => _X,2,Set(res=${CURL('http://172.16.16.31:8080/xbmcCmds/x...ltIn(Notification(RING,+${CALLERID(num)}))')})
exten => _X,3,GotoIf($["${res}" = "<HTML><LI>DROP</HTML>"]?l1:l2)
exten => _X,n(l1),PlayBack(vm-goodbye)
exten => _X,n,HangUp()
exten => _X,n(l2),NoOp()
I changed the SIP user ID to _X to match anything, renamed the context to from-pstn-custom and put it in extension_custom.conf. I don't see anything in the Asterisk log file to say this context was ever run on an incoming call so I guess I'm doing something wrong, any suggestions?
Peter