Pizco Dominguez
2005-May-13 05:38 UTC
[Asterisk-Users] In/out calls from/to same sip provider
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@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 -------------------------------------------------------------------------- --------------------------------------------------------------------------
Wilson Pickett
2005-May-13 09:42 UTC
[Asterisk-Users] In/out calls from/to same sip provider
> 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.Sometimes what is needed can be provider-dependent. Every provider I've seen gives an example for both incoming and outgoing calls. Often, SIP provider have 2 different entries for incoming and outgoing. Why not start there?
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@providerip/provider and in extensions.conf you have: Dial(SIP/${EXTEN:2}@provider) On 5/13/05, Pizco Dominguez <pizco@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@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@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 >