[asterisk-users] API: how to bridge originated call?

chester c young chestercyoung at yahoo.com
Wed Jan 3 11:05:12 MST 2007


(my pstn calls are coming in thru an upstream asterisk server, so the
called and calling phone number is passed as an extension.)

when caller comes in on 5551111, he will go to extension 1234 where he
will wait for the API to make a call to 9992222 for him.  how do I
bridge the two calls?

extensions.conf:

;context where caller comes in
[caller]
5551111,s,1 Answer()
5551111,s,n UserEvent(Init) ;this lets me know the connection for
5551111
5551111,1234,1 Noop(caller waits to be bridged)
5551111,1234,2 Background(soothingmusic)

;context for connection - is this needed?
[connect]


from the API:

(do I need to create a new context/extension first?)

Action: Originate
Channel: IAX2/upstream/9992222  <-- calls 999222 thru upsteam IAX
Context: ??
Exten: ??
Priority: ??



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the asterisk-users mailing list