VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
oza.4h07 at gmail.com Guest
|
Posted: Tue Mar 22, 2016 9:42 am Post subject: [asterisk-users] Peer matching with PJSIP |
|
|
Hello,
I'm trying to understand how to configure Asterisk 13's PJSIP stack.
I've read the pages in [1] and still have a couple of questions to ask.
In my lab, I've configured an Asterisk 13 box to act as an ITSP box and another Asterisk 13 to act as an IPBX.
I'm trying to configure the ITSP box such as it would accept incoming registrations and calls from any IP address (dynamic), if and only if IPBX provides both a username and a password.
1. From experiments, I've found that OPTION messages sent by IPBX box have a From field which contains the following value :
From: <sip:asterisk@192.168.64.136 ([email]sip%3Aasterisk@192.168.64.136[/email])>;tag=cf192aac-7799-4d6d-be1a-8297125ee595
Is it possible to change this "asterisk" in the above From field ?
Aor section in [2] do not mention such setting.
I couldn't see any undesirable side effects (beside WARNING messages on the ITSP box) from this.
2. From experiments, I've found that if INVITE messages from IPBX box do not contain a From field with a callerid matching the peer section in ITSP configuration, ITSP doesn't match incoming INVITE with appropriate endpoint.
Is it possible and desirable to change ITSP box config so that any INVITE coming from the same IP+port attached to previous REGISTER would be matched appropriately ?
Best regards
[1] https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip
[2]) https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Configuration_res_pjsip |
|
Back to top |
|
|
jcolp at digium.com Guest
|
Posted: Tue Mar 22, 2016 9:44 am Post subject: [asterisk-users] Peer matching with PJSIP |
|
|
Olivier wrote:
Quote: | Hello,
I'm trying to understand how to configure Asterisk 13's PJSIP stack.
I've read the pages in [1] and still have a couple of questions to ask.
In my lab, I've configured an Asterisk 13 box to act as an ITSP box and
another Asterisk 13 to act as an IPBX.
I'm trying to configure the ITSP box such as it would accept incoming
registrations and calls from any IP address (dynamic), if and only if
IPBX provides both a username and a password.
1. From experiments, I've found that OPTION messages sent by IPBX box
have a From field which contains the following value :
From: <sip:asterisk@192.168.64.136
<mailto:sip%3Aasterisk@192.168.64.136>>;tag=cf192aac-7799-4d6d-be1a-8297125ee595
Is it possible to change this "asterisk" in the above From field ?
Aor section in [2] do not mention such setting.
I couldn't see any undesirable side effects (beside WARNING messages on
the ITSP box) from this.
|
This is controlled using from_user in the endpoint but does not
currently work, there is a fix up[1] to improve this.
Quote: |
2. From experiments, I've found that if INVITE messages from IPBX box do
not contain a From field with a callerid matching the peer section in
ITSP configuration, ITSP doesn't match incoming INVITE with appropriate
endpoint.
Is it possible and desirable to change ITSP box config so that any
INVITE coming from the same IP+port attached to previous REGISTER would
be matched appropriately ?
|
chan_pjsip does not currently support matching based on the IP
address+port that a device has registered from. You can only explicitly
configure this right now.
[1] https://gerrit.asterisk.org/#/c/2373/
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
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
|