[Asterisk-Users] In/out calls from/to same sip provider

Adrian A adrianvoip at gmail.com
Fri May 13 12:37:56 MST 2005


If you have a [provider] peer in sip.conf, what happens if you use a
register command in sip.conf such as:

register => user:pass at providerip/provider

and in extensions.conf you have:

Dial(SIP/${EXTEN:2}@provider)


On 5/13/05, Pizco Dominguez <pizco at guadawireless.org> wrote:
> Hi.
> 
> I'm new to asterisk and, one way or the other, I manage to get it working
> for me.
> 
> But I'm having a hard time getting calls going to and coming from the
> same provider, since the definition of the peer in sip.conf seems to be
> different AND not compatible for incoming and outgoing call.
> 
> Outgoing calls need a "secret" and "username" definition in the peer
> context of sip.conf, while incoming ones will have nothing to do with
> those fields.
> 
> So I can have incoming or outgoing calls regarding one provider, but not
> both.
> 
> I've also tried the sample sintax
> 
> "exten =>_42X.,1,Dial(SIP/user:passwd@${EXTEN:2}@otherprovider.net,30,rT)"
> 
> that comes with the distribution (debian-sarge), but only to get asterisk
> unable to create sip channel because
> 
> "host dialed_number at real_sip_server_address doesn't exist". The address
> is that of the provider.
> 
> voip.org and asteriskdocs.org seems to lead me nowhere.
> 
> I must be missing something obvious, but can't figure out what it is.
> 
> Anybody?
> 
> Thanks.
> 
> --
> Pizco Dominguez
> --------------------------------------------------------------------------
> 
> --------------------------------------------------------------------------
> GPGKEY:         gpg --keyserver pgp.rediris.es --recv-key 8DE37A4D
> FINGERPRINT:    85CB 4323 F322 5837 EDB5  2033 6FB2 C326 8DE3 7A4D
> --------------------------------------------------------------------------
> 
> --------------------------------------------------------------------------
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list