GO HERE Custom Context

Peter847

New Member
Joined
Mar 16, 2009
Messages
28
Reaction score
0
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
 
Have you looked at the XBMC source in Caller ID Superfecta?
 
Ross

No I haven't. Do you mean look at the additions Caller ID Superfecta makes to extensions.conf because it also uses the "XBMC notification" method to pass the Caller ID info over the network? If so could you give me some clues on where to find it. I have Superfecta loaded but do not see where it adds its code into extensions.conf?
 
Igaetz

Many thanks for the help, the recipient of the caller ID info is a pop up in Windows and I guess the author has just used the XBMC notification method because it is already built. I think he constructed the code for a vanilla asterisk system with no FreePBX and I was trying to work out how to get it into PIAF without screwing up the rest of the system. I'll see if the inbuilt routine in Superfecta works.

Thanks also for the code edits, I may not need them but it is always good to learn!

Peter
 
Thanks . . let me explain some more. I have one Windows machine running Media Center in full screen mode as the front end to play music/radio around the house. I need a caller ID program that will work within Media Center and W7CallerID is the only one I've found that does all I want and is still supported. I know Windows Media Center is almost dead but nothing else out there seems to do just what I want without a lot of customization that is just beyond me. So I would like to stick to that application.
 

Members online

Forum statistics

Threads
26,687
Messages
174,409
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