[asterisk-users] Help sending call to local server
Paul Hales
pdhales at optusnet.com.au
Mon Sep 21 21:17:43 CDT 2009
This needs work, but it's about right for both of the problems -
probably a cut command to filter out the actual extensions being dialled.
PaulH
exten => _x,1,Set(state=${SIPPEER(${EXTEN}:status)})
exten => _x,n,GotoIf($["${state:0:2}"="OK"]?online:offline)
exten -> _x.,n(online),Dial(SIP/${EXTEN})
exten
=>_x.,n(offline),Dial(${Dial_technology}/${extension_to_call}@${Server_ip},30,r)
DHAVAL INDRODIYA wrote:
> hey paulh,
>
> i think this would not help
>
> because he wants such a dial command which forwards a call to local
> server if server_ip is of same server
>
> i have same kind of problem but still dont found proper solution
>
> in,fact i need dialing on IP base in which dialing by using IP address
> will send call to remote machine or same machine
>
> regards
> Dhaval
>
> On Fri, Sep 18, 2009 at 5:59 PM, Paul Hales <pdhales at optusnet.com.au
> <mailto:pdhales at optusnet.com.au>> wrote:
>
>
> I have used the SIPPEER function to find if a phone is local and
> available before.
>
> PaulH
>
>
> Asterisk User wrote:
> > Hi,
> >
> > I have a generalized syntax for dial application in my dialplan
> where
> > I send calls to particular server.
> > Here is my dial sysntax...
> > exten =>
> >
> _x.,1,Dial(${Dial_technology}/${extension_to_call}@${Server_ip},30,r)
> >
> > I can send a call to remote server using register statement in
> > sip.conf or iax.conf and it works as calls get landed in particular
> > context of remote server.
> >
> > Would you please suggest me changes to be made in .conf file(s) if I
> > want the calls to be landed in context of local server if
> Server_ip is
> > the IP of a server running asterisk?
> >
> > Thanking you
> >
> >
> > --ASTERISK USER
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by
> http://www.api-digital.com --
> >
> > AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> > Register Now: http://www.astricon.net
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list