[Asterisk-Dev] Re: calling one application from other application

Brian West brian.west at mac.com
Wed Feb 23 08:14:57 MST 2005


isn't it:

struct ast_app DialApp;

/b

On Feb 23, 2005, at 6:07 AM, Kamran Ahmad wrote:

> hello
>
> i have tried this one but it is not working
>
> -------------------------------------------------------
> char* DialApp;
> DialApp = pbx_findapp("Dial");
> 	
> int ret=0;
> if (app)
> {
> ret = pbx_exec(chan, DialApp, "SIP/2000", 1);
> }
> else
> {
> }
> -------------------------------------------------------
>
> here is the result he is sending 403 Forbidden
> -------------------------------------------------------
> Feb 24 16:58:54 WARNING[6785]:
> app_prepaid_auth_pin.c:Destroying call
> '507d892f5634a872579bda5926f80308 at 192.168.0.203'
> result
> Feb 24 16:58:54 NOTICE[6785]: app_dial.c:911
> dial_exec_full: Unable to create channel of type 'SIP'
> (cause 3)
> Destroying call '843817637684230 at 192.168.0.117'
> Reliably Transmitting (no NAT):
> SIP/2.0 403 Forbidden
> Via: SIP/2.0/UDP
> 192.168.0.117;branch=z9hG4bK2038176231
> From: <sip:3000 at 192.168.0.203>;
> To: <sip:2000 at 192.168.0.203>;tag=as4f08e560
> Call-ID: 50 at 192.168.0.117
> CSeq: 20 INVITE
> User-Agent: Asterisk PBX
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
> Contact: <sip:2000 at 192.168.0.203>
> Content-Length: 0
>
>
> -------------------------------------------------------
>
>
>
>
>
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list