VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
bhaje at gmx.de Guest
|
Posted: Fri Feb 08, 2008 7:24 am Post subject: [asterisk-users] Domainname for outgoing uri-dialing |
|
|
Hi,
I use outgoing URI-dialing for my sip-phones as suggested in
http://www.voip-info.org/wiki/view/Asterisk+tips+SIP+URI+Dial
The relevant extensions look like this:
[dial-uri]
exten => _[a-z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _[A-Z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _X.,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
[macro-uridial]
exten => s,1,Set(dialuri=${CUT(ARG1,\;,1)})
exten => s,n,Set(CALLERID(number)=${CALLERID(number)}@domain.com)
exten => s,n,Dial(SIP/${dialuri},120,tr)
exten => s,n,Congestion()
I end up with an outgoing SIP-Invite with contact and from-headers like
username at domain.com@<IP-address>
That obviously is not what I want. I can set the fromdomain value in the
general-part of my sip.conf and leave away the setting of the callerid
which fixes the problem. But as I want to use different domains for the
outgoing calls depending on the user, that is not a solution for me. Can
I influence the generation of the outgoing domainname somehow?
thanks for your help
Bjoern |
|
Back to top |
|
|
oej at edvina.net Guest
|
Posted: Sun Feb 10, 2008 11:35 am Post subject: [asterisk-users] Domainname for outgoing uri-dialing |
|
|
8 feb 2008 kl. 13.24 skrev Bjoern Haje:
Quote: | Hi,
I use outgoing URI-dialing for my sip-phones as suggested in
http://www.voip-info.org/wiki/view/Asterisk+tips+SIP+URI+Dial
The relevant extensions look like this:
[dial-uri]
exten => _[a-z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _[A-Z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _X.,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
[macro-uridial]
exten => s,1,Set(dialuri=${CUT(ARG1,\;,1)})
exten => s,n,Set(CALLERID(number)=${CALLERID(number)}@domain.com)
exten => s,n,Dial(SIP/${dialuri},120,tr)
exten => s,n,Congestion()
I end up with an outgoing SIP-Invite with contact and from-headers
like
username at domain.com@<IP-address>
That obviously is not what I want. I can set the fromdomain value in
the
general-part of my sip.conf and leave away the setting of the callerid
which fixes the problem. But as I want to use different domains for
the
outgoing calls depending on the user, that is not a solution for me.
Can
I influence the generation of the outgoing domainname somehow?
|
No, but that would be a good addition to Asterisk. I started
experimenting with that
in my caller ID utf8 branch at some point, but never got time or
funding to complete
that work.
/O |
|
Back to top |
|
|
bhaje at gmx.de Guest
|
Posted: Sun Feb 10, 2008 12:11 pm Post subject: [asterisk-users] Domainname for outgoing uri-dialing |
|
|
asterisk-users-bounces at lists.digium.com wrote:
Quote: | 8 feb 2008 kl. 13.24 skrev Bjoern Haje:
Quote: | Hi,
I use outgoing URI-dialing for my sip-phones as suggested in
http://www.voip-info.org/wiki/view/Asterisk+tips+SIP+URI+Dial
The relevant extensions look like this:
[dial-uri]
exten => _[a-z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _[A-Z].,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _X.,1,Macro(uridial,${EXTEN}@${SIPDOMAIN})
[macro-uridial]
exten => s,1,Set(dialuri=${CUT(ARG1,\;,1)})
exten => s,n,Set(CALLERID(number)=${CALLERID(number)}@domain.com)
exten => s,n,Dial(SIP/${dialuri},120,tr)
exten => s,n,Congestion()
I end up with an outgoing SIP-Invite with contact and from-headers
like username at domain.com@<IP-address>
That obviously is not what I want. I can set the fromdomain value in
the general-part of my sip.conf and leave away the setting of the
callerid which fixes the problem. But as I want to use different
domains for the outgoing calls depending on the user, that is not a
solution for me. Can I influence the generation of the outgoing
domainname somehow?
|
No, but that would be a good addition to Asterisk. I started
experimenting with that in my caller ID utf8 branch at some point,
but never got time or funding to complete that work.
|
Thanks for your help again. Would be nice really, but I'll try to find a
workaround to avoid that problem (or ignore it).
Bjoern |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|