Call URL on every incoming call [SOLVED]

I would need to call a specific internet url on every incoming call
and send the caller’s number via GET

Caller ID Superfecta, Send to URL source can do this.

i am trying “CallerID Lookup Sources” is the same thing?


Ok it’s not the same but does it fulfill the task?

However I’d like to do it with something different
For example with extensions_override_freepbx.conf
Say I can find contexts of incoming routes and put something like:
exten => 10, n, Set (result = $ {CURL (http: //localhost/invemail.php? num = $ {CALLERID (number)})})

Yes, you should be able to do that.

The incoming call context is set in your Inbound Route, so create a new one in the extensions_custom.conf and go to town. That way, you have to override the default one.

When you create the context, set it up to do whatever you want to do, the use a “goto()” to jump back into the normal call handling structure so that your other functions will work. In this case, you probably want to start your exten list at “._” so that it gets matches on all incoming calls.

Now, a simpler way to do this would be to add the curl call to the CallerID Superfecta (which is different than caller ID sources) and implement your web call directly through that interface. You get the same result, but simpler.

Ok thanks, I would say that the topic has been deepened and I used “CallerID Lookup Sources” with profit
Thank you all

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.