Call URL on every incoming call [SOLVED]


(Claudio Pelosi) #1

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


(Lorne Gaetz) #2

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


(Claudio Pelosi) #3

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


(Jared Busch) #4

No…


(Claudio Pelosi) #5

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


(Claudio Pelosi) #6

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)})})


(Dave Burgess) #7

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.


(Claudio Pelosi) #8

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