[Asterisk-Users] IAX - peername or hostname /new subject/

Florian Overkamp florian at obsimref.com
Tue Dec 9 04:58:14 MST 2003


At 12:39 9-12-2003 +0100, you wrote:

>>>Yes, try using this instead:
>>>
>>>Dial,IAX2/username at peername/extension
>>
>>Hmm, thats a thought, but I thought peername would need to be a host ?
>>Also, the nasty part is that specific portion from extensions.conf on the 
>>master server is generated, so I'd need to change the code for it.
>Usually peername points to a [peername] section in the channel configuration.
>
>For SIP, peername either points to a [peername] section in the Sip.conf file,
>or to a host name (i.e. "fwd.pulver.com") that is looked up in the DNS.
>
>I don't know if IAX accepts a host name as a replacement for peername.

Yes, it does :-)

But if peername and username are the same, one could write a macro:

Dial(IAX2/${ARG1}@${ARG1}) ? Is it safe to do that all the time ? Hmm, need 
to experiment...

Florian




More information about the asterisk-users mailing list